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 2e6b50e commit ae32ba1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ volumes:

services:
backend:
image: secfit_backend:latest
container_name: secfit_prod_backend
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 @@ -18,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 ae32ba1

Please sign in to comment.