diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index f0375f1..45dddad 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -1,13 +1,4 @@ version: '3' -name: secfit_dev - -volumes: - backend_vol: - #driver: local - #driver_opts: - # type: 'none' - # o: 'bind' - # device: '/var/opt/secfit/dev_backend/app' services: backend: @@ -15,41 +6,36 @@ 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 ports: - - ${DEV_PORT_PREFIX}4:8000 + - "${DEV_BACKEND_PORT}:8000" # Map host port 20414 to container port 8000 (backend) volumes: - backend_vol:/app - + frontend: container_name: secfit_dev_frontend build: context: frontend/ dockerfile: Dockerfile - network: host #Need to expose it during setup, then it is isolated during running - #environment: - # PUBLIC_URL: "dev/public" - ports: - - ${DEV_PORT_PREFIX}5:3000 networks: - backend_bridge: + - backend_bridge + ports: + - "${DEV_FRONTEND_PORT}:3000" # Map host port 20415 to container port 3000 (frontend) -gateway: - container_name: secfit_dev_gateway - image: nginx:latest - ports: - - "20416:80" # Map host port 20416 to container port 80 - networks: - - backend_bridge - volumes: - - ./nginx/nginx.conf:/etc/nginx/nginx.conf - depends_on: - - frontend - - backend + gateway: + container_name: secfit_dev_gateway + image: nginx:latest + ports: + - "${DEV_GATEWAY_PORT}:80" # Map host port 20416 to container port 80 (gateway) + networks: + - backend_bridge + volumes: + - ./nginx/nginx.conf:/etc/nginx/nginx.conf + depends_on: + - frontend + - backend -# The network configuration isolates the modules within a single network and an IP. -networks: +networks: backend_bridge: driver: bridge