diff --git a/docker-compose.stag.yml b/docker-compose.stag.yml index fe3cd35..7a7128c 100644 --- a/docker-compose.stag.yml +++ b/docker-compose.stag.yml @@ -1,5 +1,8 @@ version: '3' +volumes: + backend_vol: # Define the backend_vol volume + services: backend: container_name: secfit_stag_backend @@ -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 @@ -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