From bd1bae4e959717e2d33f0b7c73156c4f60e1b7be Mon Sep 17 00:00:00 2001 From: Ryan Wakeham <85182216+cx-ryan-wakeham@users.noreply.github.com> Date: Wed, 10 Dec 2025 17:00:32 -0600 Subject: [PATCH] refactor: update Docker Compose configuration to use expose instead of ports - Changed service configuration in docker-compose.yml to use 'expose' for backend and frontend services instead of 'ports'. - This adjustment improves container networking by allowing internal communication without exposing ports to the host. --- docker/docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f75470f..3080d50 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -22,8 +22,8 @@ services: JWT_SECRET: secret_key_12345 AWS_ACCESS_KEY_ID: AKIAIOSFODNN7EXAMPLE AWS_SECRET_ACCESS_KEY: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY - ports: - - "5000:5000" + expose: + - 5000 volumes: - ../backend:/app - uploads:/app/uploads @@ -40,8 +40,8 @@ services: build: context: ../frontend dockerfile: Dockerfile - ports: - - "3000:3000" + expose: + - 3000 environment: # Leave empty to use dynamic host detection in api.js # Or set explicitly: REACT_APP_API_URL: http://YOUR_SERVER_IP:5000/api