From 8660966c9e4a4b06eb57aa8afb8cabb66b574eeb Mon Sep 17 00:00:00 2001 From: Thomas Reitz Date: Sun, 8 Mar 2026 16:38:47 +0100 Subject: [PATCH] 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 --- .env.example | 2 +- docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 41c54f6..2e6e0f1 100644 --- a/.env.example +++ b/.env.example @@ -14,7 +14,7 @@ LOG_LEVEL=info # --- PostgreSQL --- DB_HOST=pgbouncer -DB_PORT=6432 +DB_PORT=5432 DB_USER=insight DB_PASSWORD= # Sicheres Passwort setzen! DB_NAME=platform_core diff --git a/docker-compose.yml b/docker-compose.yml index 2fc08db..df3a86f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -149,7 +149,7 @@ services: postgres: condition: service_healthy 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 timeout: 5s retries: 3 @@ -222,7 +222,7 @@ services: FRONTEND_URL: ${FRONTEND_URL:-http://172.20.10.59} LOG_LEVEL: ${LOG_LEVEL:-info} # 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_URL_DIRECT: "postgresql://${DB_USER:-insight}:${DB_PASSWORD}@postgres:5432/${DB_NAME:-platform_core}" # Redis