From c7168d5b136ecf81f09e919d837ac5889d179d23 Mon Sep 17 00:00:00 2001 From: Melvin PETIT Date: Mon, 29 Jun 2026 09:42:56 +0200 Subject: [PATCH] fix(compose): drop db host port publish to avoid 5432 clash Host may already run Postgres on 5432; publishing the db container port collided and crashed the stack. App reaches db over the internal compose network (db:5432), so the host publish was unnecessary. --- compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index c360bf2..c630331 100644 --- a/compose.yml +++ b/compose.yml @@ -30,8 +30,8 @@ services: POSTGRES_USER: ${POSTGRES_USER:-user} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} POSTGRES_DB: ${POSTGRES_DB:-datashield} - ports: - - "5432:5432" + # No host port publish: app reaches db over the internal compose network + # (db:5432). Avoids clashing with a Postgres already bound to host 5432. volumes: - datashield-db-data:/var/lib/postgresql/data healthcheck: