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 ade9d0c commit 5349530
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: '3'

volumes:
backend_vol: # Define the backend_vol volume

services:
backend:
container_name: secfit_prod_backend
Expand All @@ -11,31 +14,12 @@ services:
ports:
- "${PROD_BACKEND_PORT}:8000" # Map host port 20434 to container port 8000 (backend)
volumes:
- backend_vol:/app
- backend_vol:/app # Use the backend_vol volume

frontend:
container_name: secfit_prod_frontend
build:
context: frontend/
dockerfile: Dockerfile
networks:
- backend_bridge
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
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
- backend

networks:
backend_bridge:
driver: bridge
- backend_b

0 comments on commit 5349530

Please sign in to comment.