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
|
- ALLOW_ORIGIN=frontend
|
||||||
- SECRET_KEY=default_secret_key
|
- SECRET_KEY=default_secret_key
|
||||||
|
|
||||||
|
frontend:
|
||||||
# frontend:
|
container_name: frontend
|
||||||
# container_name: frontend
|
build: ./frontend
|
||||||
# build: ./frontend
|
command: ng serve --host 0.0.0.0
|
||||||
# command: ng serve --host 0.0.0.0
|
volumes:
|
||||||
# volumes:
|
- ./frontend/src:/data/frontend/
|
||||||
# - ./frontend/src:/data/frontend/
|
- ./frontend/node_modules:/data/frontend/node_modules
|
||||||
# - ./frontend/node_modules:/data/frontend/node_modules
|
ports:
|
||||||
# ports:
|
- "4200:4200"
|
||||||
# - "4200:4200"
|
depends_on:
|
||||||
# depends_on:
|
- backend
|
||||||
# - backend
|
links:
|
||||||
# links:
|
- backend
|
||||||
# - backend
|
environment:
|
||||||
# environment:
|
- NODE_ENV=development
|
||||||
# - NODE_ENV=development
|
- API_URL=http://backend/api
|
||||||
# - API_URL=http://backend/api
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue