Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jifollan authored and GitHub Enterprise committed Mar 20, 2025
1 parent 5349530 commit 08b1f78
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ version: '3'
volumes:
backend_vol: # Define the backend_vol volume

networks:
backend_bridge: # Define the backend_bridge network
driver: bridge

services:
backend:
container_name: secfit_prod_backend
build:
context: backend/
dockerfile: Dockerfile
networks:
- backend_bridge
- backend_bridge # Use the backend_bridge network
ports:
- "${PROD_BACKEND_PORT}:8000" # Map host port 20434 to container port 8000 (backend)
volumes:
Expand All @@ -22,4 +26,19 @@ services:
context: frontend/
dockerfile: Dockerfile
networks:
- backend_b
- backend_bridge # Use the backend_bridge network
ports:
- "${PROD_FRONTEND_PORT}:3000" # Map host port 20435 to container port 3000 (frontend)

gateway:
container_name: secfit_prod_gateway
image: nginx:latest
ports:
- "${PROD_GATEWAY_PORT}:80" # Map host port 20436 to container port 80 (gateway)
networks:
- backend_bridge # Use the backend_bridge network
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
- backend

0 comments on commit 08b1f78

Please sign in to comment.