Update: Docker with frontend

This commit is contained in:
Yûki VACHOT 2022-01-14 15:56:33 +01:00
parent 8c301c1cda
commit bb141b4bfb

View file

@ -54,20 +54,19 @@ services:
- ALLOW_ORIGIN=frontend
- SECRET_KEY=default_secret_key
# frontend:
# container_name: frontend
# build: ./frontend
# command: ng serve --host 0.0.0.0
# volumes:
# - ./frontend/src:/data/frontend/
# - ./frontend/node_modules:/data/frontend/node_modules
# ports:
# - "4200:4200"
# depends_on:
# - backend
# links:
# - backend
# environment:
# - NODE_ENV=development
# - API_URL=http://backend/api
frontend:
container_name: frontend
build: ./frontend
command: ng serve --host 0.0.0.0
volumes:
- ./frontend/src:/data/frontend/
- ./frontend/node_modules:/data/frontend/node_modules
ports:
- "4200:4200"
depends_on:
- backend
links:
- backend
environment:
- NODE_ENV=development
- API_URL=http://backend/api