-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
48 lines (47 loc) · 973 Bytes
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.8"
services:
server:
build:
context: .
dockerfile: Dockerfile
container_name: server
volumes:
- '/usr/src/app/node_modules'
- ./packages/server/:/usr/src/app/packages/server
ports:
- 3011:3011
command:
npm --prefix packages/server start
frontend:
build:
context: .
dockerfile: Dockerfile
restart: always
container_name: frontend
volumes:
- "/usr/src/app/node_modules"
- ./packages/frontend/:/usr/src/app/packages/frontend
ports:
- 4200:4200
links:
- server
command:
npm --prefix packages/frontend start
# version: "3.8"
# services:
# server:
# build: ./server
# container_name: b_server
# ports:
# 0
# app:
# build: .
# restart: always
# volumes:
# - "/code/node_modules"
# - ./:/code
# ports:
# - 4200:4200
# - 3011:3011
# command:
# ng serve --host 0.0.0.0