-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
64 lines (62 loc) · 1.41 KB
/
docker-compose.yml
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
version: '3.7'
services:
client:
stdin_open: true
build:
context: ./client
dockerfile: Dockerfile
image: waves_client
container_name: waves_client_container
command: npm start
volumes:
- ./client/:/usr/src/waves2020/client/
- /usr/src/waves2020/client/node_modules
ports:
- '80:3000'
depends_on:
- api_reg_portal
environment:
- CHOKIDAR_USEPOLLING=true
networks:
- waves_network
restart: always
api_reg_portal:
build:
context: ./server
dockerfile: Dockerfile
image: waves_server
container_name: waves_server_container
restart: always
command: npm run server
volumes:
- ./server/:/usr/src/waves2020/server/
- /usr/src/waves2020/server/node_modules
ports:
- '5000:5000'
depends_on:
- mongo
environment:
- NODE_ENV=development
- MONGO_URL=mongodb://mongo:27017/waves2020
- CHOKIDAR_USEPOLLING=true
networks:
- waves_network
mongo:
image: mongo
restart: always
container_name: waves_mongo_container
ports:
- '27017:27017'
networks:
- waves_network
volumes:
- data_mongo:/data/db
networks:
waves_network:
driver: bridge
volumes:
data_mongo:
node_modules_client:
node_modules_server:
web-root:
driver: local