From 6230558b9148877a5521ea1a9683fa2cf9b5725f Mon Sep 17 00:00:00 2001 From: olsch01 Date: Mon, 2 Mar 2026 20:14:24 -0500 Subject: [PATCH] fix: remove backend/frontend host port mappings from base compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker Compose merges port arrays from base + override files, so the base 3000:3000 and the prod overlay 127.0.0.1:3000:3000 conflicted. Removed direct host port mappings from the base — dev traffic already routes through the Docker nginx on port 80 via the bridge network. The prod overlay cleanly adds loopback-only mappings. Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 23d8c93..922339e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,8 +15,8 @@ services: build: context: ./backend dockerfile: Dockerfile.dev - ports: - - "3000:3000" + # No host port mapping — dev traffic goes through the Docker nginx container. + # Production overlay maps 127.0.0.1:3000 for the host reverse proxy. environment: - DATABASE_URL=${DATABASE_URL} - REDIS_URL=${REDIS_URL} @@ -43,8 +43,8 @@ services: build: context: ./frontend dockerfile: Dockerfile.dev - ports: - - "5173:5173" + # No host port mapping — dev traffic goes through the Docker nginx container. + # Production overlay maps 127.0.0.1:3001 for the host reverse proxy. environment: - NODE_ENV=${NODE_ENV} volumes: