Skip to content

Commit

Permalink
Update docker-compose.stag.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 711fc83 commit ade9d0c
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions docker-compose.stag.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_stag_backend
Expand All @@ -11,7 +14,7 @@ services:
ports:
- "${STAG_BACKEND_PORT}:8000" # Map host port 20424 to container port 8000 (backend)
volumes:
- backend_vol:/app
- backend_vol:/app # Use the backend_vol volume

frontend:
container_name: secfit_stag_frontend
Expand All @@ -27,15 +30,4 @@ services:
container_name: secfit_stag_gateway
image: nginx:latest
ports:
- "${STAG_GATEWAY_PORT}:80" # Map host port 20426 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
- "${STAG_GATEWAY_PORT}:80" # Map host port 20426 to container port

0 comments on commit ade9d0c

Please sign in to comment.