feat(pgbouncer): set postgresql database as pgbouncer database if it's not set (#35677)

* feat(pgbouncer): set postgresql database as pgbouncer database if it's not set

Signed-off-by: Ihor Hrytskiv <ihor.hrytskiv@macpaw.com>

* Update bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh

Co-authored-by: Juan José Martos <jotamartos@gmail.com>
Signed-off-by: ihor-hrytskiv <39990360+ihor-hrytskiv@users.noreply.github.com>

---------

Signed-off-by: Ihor Hrytskiv <ihor.hrytskiv@macpaw.com>
Signed-off-by: ihor-hrytskiv <39990360+ihor-hrytskiv@users.noreply.github.com>
Co-authored-by: Juan José Martos <jotamartos@gmail.com>
This commit is contained in:
ihor-hrytskiv 2023-06-09 10:52:34 +03:00 committed by GitHub
parent 94bd18b0c8
commit 2e522f0571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export PGBOUNCER_CLIENT_IDLE_TIMEOUT="${PGBOUNCER_CLIENT_IDLE_TIMEOUT:-}"
# PostgreSQL backend settings
export POSTGRESQL_USERNAME="${POSTGRESQL_USERNAME:-postgres}"
export POSTGRESQL_PASSWORD="${POSTGRESQL_PASSWORD:-}"
export POSTGRESQL_DATABASE="${POSTGRESQL_DATABASE:-postgres}"
export POSTGRESQL_DATABASE="${POSTGRESQL_DATABASE:-${PGBOUNCER_DATABASE}}"
export POSTGRESQL_HOST="${POSTGRESQL_HOST:-postgresql}"
export POSTGRESQL_PORT="${POSTGRESQL_PORT:-5432}"
export PGBOUNCER_SET_DATABASE_USER="${PGBOUNCER_SET_DATABASE_USER:-no}"