Use configured port for postgres pooler
This commit is contained in:
parent
f25238e960
commit
cc4a1d0608
|
@ -125,7 +125,6 @@ job "lemonldap-ng" {
|
|||
|
||||
}
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -110,7 +110,7 @@ _EOT
|
|||
PGHOST=[[ $c.postgres.host ]]
|
||||
PGDATABASE=[[ $c.postgres.database ]]
|
||||
[[- if ne $c.postgres.pooler.engine "none" ]]
|
||||
PGPORT=6432
|
||||
PGPORT=[[ $c.postgres.pooler.port ]]
|
||||
PGUSER=[[ .instance ]]
|
||||
PGPASSWORD={{ env "NOMAD_ALLOC_ID" }}
|
||||
[[- else ]]
|
||||
|
|
Loading…
Reference in New Issue