fix: correct PgBouncer port to 5432 (image default)

The edoburu/pgbouncer image listens on port 5432 internally,
not 6432. Updated healthcheck and DATABASE_URL accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Reitz 2026-03-08 16:38:47 +01:00
parent 5412ae137a
commit 8660966c9e
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ LOG_LEVEL=info
# --- PostgreSQL --- # --- PostgreSQL ---
DB_HOST=pgbouncer DB_HOST=pgbouncer
DB_PORT=6432 DB_PORT=5432
DB_USER=insight DB_USER=insight
DB_PASSWORD= # Sicheres Passwort setzen! DB_PASSWORD= # Sicheres Passwort setzen!
DB_NAME=platform_core DB_NAME=platform_core

View file

@ -149,7 +149,7 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 6432"] test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 5432"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3
@ -222,7 +222,7 @@ services:
FRONTEND_URL: ${FRONTEND_URL:-http://172.20.10.59} FRONTEND_URL: ${FRONTEND_URL:-http://172.20.10.59}
LOG_LEVEL: ${LOG_LEVEL:-info} LOG_LEVEL: ${LOG_LEVEL:-info}
# Database (via PgBouncer) # Database (via PgBouncer)
DATABASE_URL: "postgresql://${DB_USER:-insight}:${DB_PASSWORD}@pgbouncer:6432/${DB_NAME:-platform_core}" DATABASE_URL: "postgresql://${DB_USER:-insight}:${DB_PASSWORD}@pgbouncer:5432/${DB_NAME:-platform_core}"
# Database (direkt fuer Migrations) # Database (direkt fuer Migrations)
DATABASE_URL_DIRECT: "postgresql://${DB_USER:-insight}:${DB_PASSWORD}@postgres:5432/${DB_NAME:-platform_core}" DATABASE_URL_DIRECT: "postgresql://${DB_USER:-insight}:${DB_PASSWORD}@postgres:5432/${DB_NAME:-platform_core}"
# Redis # Redis