diff --git a/immich.nomad.hcl b/immich.nomad.hcl index e9c520f..c6ea974 100644 --- a/immich.nomad.hcl +++ b/immich.nomad.hcl @@ -97,7 +97,7 @@ job "[[ .instance ]]" { data =<<_EOT DB_URL=postgres:// [[- if ne $c.postgres.pooler.engine "none" -]] -[[ .instance ]]:{{ env "NOMAD_ALLOC_ID" }}@127.0.0.1:6432/[[ $c.postgres.database ]] +[[ .instance ]]:{{ env "NOMAD_ALLOC_ID" }}@127.0.0.1:[[ $c.postgres.pooler.port ]]/[[ $c.postgres.database ]] [[- else -]] [[ $c.postgres.user ]]:[[ $c.postgres.password ]]@[[ $c.postgres.host ]]:[[ $c.postgres.port ]]/[[ $c.postgres.database ]] [[- end ]]