-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·76 lines (72 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
executable file
·76 lines (72 loc) · 1.5 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.3'
services:
app_api:
network_mode: bridge
container_name: app_api
command: npm run dev
hostname: app_api
build:
context: ./app
volumes:
- ./app:/app
- ./app/node_modules:/app/node_modules
links:
- mongo:mongo
expose:
- 3001
- 9229
ports:
- 3001:3001
- 9229:9229
environment:
LOG_LEVEL: debug
MONGODB_ENDPOINT: 'mongodb://mongo:27017/product'
PORT: 3001
client-api:
network_mode: bridge
container_name: client-api
command: npm run dev
hostname: client-api
build:
context: ./client-api
volumes:
- ./client-api:/client-api
- ./client-api/node_modules:/client-api/node_modules
links:
- app_api:app_api
expose:
- 3000
- 9228
ports:
- 3000:3000
- 9228:9228
environment:
PORT: 3000
# API_URL: 'http://app_api/api'
client-view:
network_mode: bridge
container_name: client-view
command: npm run dev
hostname: client-view
build:
context: ./client-view
volumes:
- ./client-view:/client-view
- ./client-view/node_modules:/client-view/node_modules
links:
- app_api:app_api
expose:
- 3002
- 9227
ports:
- 3002:3002
- 9227:9227
mongo:
network_mode: bridge
container_name: mongo
image: "mongo:3.4-jessie"
hostname: mongo
ports:
- 27017:27017
volumes:
- ./volumes/mongodb:/data/db