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 52ecaea commit cb2f3a1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
version: '3.8'

volumes:
backend_vol:
version: '3'

services:
backend:
container_name: secfit_prod_backend
build:
context: backend/
dockerfile: Dockerfile
network: host #Need to expose it during setup, then it is isolated during running
networks:
backend_bridge:
- backend_bridge
ports:
- "${PROD_BACKEND_PORT}:8000" # Map host port 20434 to container port 8000 (backend)
volumes:
- backend_vol:/app

Expand All @@ -20,23 +18,24 @@ services:
build:
context: frontend/
dockerfile: Dockerfile
network: host #Need to expose it during setup, then it is isolated during running
networks:
backend_bridge:
- 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_PORT_PREFIX}6:80
- "${PROD_GATEWAY_PORT}:80" # Map host port 20436 to container port 80 (gateway)
networks:
backend_bridge:
- backend_bridge
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- frontend
- backend

networks:
networks:
backend_bridge:
driver: bridge

0 comments on commit cb2f3a1

Please sign in to comment.