Use configured port for postgres pooler

This commit is contained in:
Daniel Berteaud 2024-01-19 15:05:29 +01:00
parent 4e333515c0
commit 37185bbe2b
2 changed files with 1 additions and 2 deletions

View File

@ -126,7 +126,6 @@ job "matrix" {
}
# Use a template block instead of env {} so we can fetch values from vault
template {
data = <<_EOT

View File

@ -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 ]]