Update: Docker with frontend
This commit is contained in:
parent
8c301c1cda
commit
bb141b4bfb
1 changed files with 16 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue