From c7f85bd98594b2b000ab0f80f1a70d2df312e4e3 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 27 Mar 2023 15:21:19 -0700 Subject: [PATCH] Fix blocky redis stunnel lookup --- core/blocky/blocky.nomad | 5 +++++ core/blocky/config.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/blocky/blocky.nomad b/core/blocky/blocky.nomad index 0410785..cd9e07b 100644 --- a/core/blocky/blocky.nomad +++ b/core/blocky/blocky.nomad @@ -108,6 +108,11 @@ job "blocky" { task "redis-stunnel" { driver = "docker" + lifecycle { + hook = "prestart" + sidecar = true + } + config { image = "alpine:3.17" ports = ["tls"] diff --git a/core/blocky/config.yml b/core/blocky/config.yml index f4b5d1d..8ccf46f 100644 --- a/core/blocky/config.yml +++ b/core/blocky/config.yml @@ -95,7 +95,7 @@ customDNS: prometheus: enable: true -{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "redis" -}} +{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "redis-tls" -}} redis: address: 127.0.0.1:6379 # password: ""