diff --git a/core/blocky/config.yml b/core/blocky/config.yml index 320cd73..4918867 100644 --- a/core/blocky/config.yml +++ b/core/blocky/config.yml @@ -102,9 +102,9 @@ redis: {{ end -}} {{ $mysql_addr := "" }} -{{ with nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-server" -}}{{ range . -}} +{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-server" -}} {{ $mysql_addr = print .Address ":" .Port }} -{{- end }}{{- end }} +{{- end }} {{ with nomadVar "nomad/jobs/blocky" -}} queryLog: type: mysql