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 e2a5ca6 commit b10e9f0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ services:
build:
context: backend/
dockerfile: Dockerfile
network: host #Need to expose it during setup, then it is isolated during running
networks:
backend_bridge:
- backend_bridge
volumes:
- backend_vol:/app

Expand All @@ -21,25 +20,22 @@ services:
build:
context: frontend/
dockerfile: Dockerfile
network: host #Need to expose it during setup, then it is isolated during running
#environment:
# PUBLIC_URL: "http://tdt4242-${GROUP_ID}.idi.ntnu.no/prod/public"
networks:
backend_bridge:
- backend_bridge

gateway:
container_name: secfit_prod_gateway
image: nginx:latest
ports:
- ${PROD_PORT_PREFIX}6:80
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 b10e9f0

Please sign in to comment.