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 64dc5b1 commit 52ecaea
Showing 1 changed file with 33 additions and 6 deletions.
39 changes: 33 additions & 6 deletions docker-compose.stag.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,41 @@
version: '3'
name: secfit_stag

services:
backend:
container_name: secfit_stag_backend
build:
context: backend/
network: host
dockerfile: Dockerfile.test
environment:
- DEBUG=1
dockerfile: Dockerfile
networks:
- backend_bridge
ports:
- ${STAG_PORT_PREFIX}4:8000
- "${STAG_BACKEND_PORT}:8000" # Map host port 20424 to container port 8000 (backend)
volumes:
- backend_vol:/app

frontend:
container_name: secfit_stag_frontend
build:
context: frontend/
dockerfile: Dockerfile
networks:
- backend_bridge
ports:
- "${STAG_FRONTEND_PORT}:3000" # Map host port 20425 to container port 3000 (frontend)

gateway:
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

0 comments on commit 52ecaea

Please sign in to comment.