Use configured port for postgres pooler
This commit is contained in:
parent
4e333515c0
commit
37185bbe2b
|
@ -126,7 +126,6 @@ job "matrix" {
|
|||
|
||||
}
|
||||
|
||||
|
||||
# Use a template block instead of env {} so we can fetch values from vault
|
||||
template {
|
||||
data = <<_EOT
|
||||
|
|
|
@ -21,7 +21,7 @@ database:
|
|||
database: '[[ .postgres.database ]]'
|
||||
[[- if ne .postgres.pooler.engine "none" ]]
|
||||
host: '127.0.0.1'
|
||||
port: '6432'
|
||||
port: '[[ .postgres.pooler.port ]]'
|
||||
user: '[[ .instance ]]'
|
||||
password: '{{ env "NOMAD_ALLOC_ID" }}'
|
||||
[[- else ]]
|
||||
|
|
Loading…
Reference in New Issue