Use configured port for postgres pooler
This commit is contained in:
parent
1b2462c4ae
commit
a53cf467fd
|
@ -105,7 +105,6 @@ job "onlyoffice" {
|
|||
|
||||
}
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
@ -248,7 +247,6 @@ _EOT
|
|||
]
|
||||
}
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -84,7 +84,7 @@ job [[ .instance | toJSON ]] {
|
|||
OO_DB_NAME='[[ $c.postgres.database ]]'
|
||||
[[- if ne $c.postgres.pooler.engine "none" ]]
|
||||
OO_DB_HOST=127.0.0.1
|
||||
OO_DB_PORT=6432
|
||||
OO_DB_PORT=[[ $c.postgres.pooler.port ]]
|
||||
OO_DB_USER=[[ .instance ]]
|
||||
OO_DB_PASS={{ env "NOMAD_ALLOC_ID" }}
|
||||
[[- else ]]
|
||||
|
@ -118,7 +118,7 @@ _EOT
|
|||
}
|
||||
|
||||
[[ template "common/task.wait_for" $c ]]
|
||||
[[ template "common/postgres_pooler" $c ]]
|
||||
[[ template "common/task.pgpooler" $c ]]
|
||||
|
||||
task "redis" {
|
||||
driver = [[ $c.nomad.driver | toJSON ]]
|
||||
|
|
Loading…
Reference in New Issue