Fix blocky redis stunnel lookup

This commit is contained in:
IamTheFij 2023-03-27 15:21:19 -07:00
parent f17dec7b57
commit c7f85bd985
2 changed files with 6 additions and 1 deletions

View File

@ -108,6 +108,11 @@ job "blocky" {
task "redis-stunnel" { task "redis-stunnel" {
driver = "docker" driver = "docker"
lifecycle {
hook = "prestart"
sidecar = true
}
config { config {
image = "alpine:3.17" image = "alpine:3.17"
ports = ["tls"] ports = ["tls"]

View File

@ -95,7 +95,7 @@ customDNS:
prometheus: prometheus:
enable: true enable: true
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "redis" -}} {{ range nomadService 1 (env "NOMAD_ALLOC_ID") "redis-tls" -}}
redis: redis:
address: 127.0.0.1:6379 address: 127.0.0.1:6379
# password: "" # password: ""