From abc763d13582032fd61c0e0bf64320e18ccf59ce Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 17 Dec 2025 21:15:11 +0100 Subject: [PATCH] Fix: Remove PostgreSQL port mapping in production Database is only accessed via Docker network, not externally. This prevents port 5432 conflicts on production servers. --- docker-compose.prod.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 783fb04..61c530c 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -13,8 +13,9 @@ services: - postgres_data:/var/lib/postgresql/data # Mount all migration files for initialization - ./migrations:/docker-entrypoint-initdb.d:ro - ports: - - "${POSTGRES_PORT:-5432}:5432" + # NO external port mapping - only accessible via Docker network + # ports: + # - "${POSTGRES_PORT:-5432}:5432" restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]