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 855453c commit 30c7be2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ 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 @@ -20,22 +21,25 @@ 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 30c7be2

Please sign in to comment.