-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.03 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
version: '3'
services:
server:
build: ./server
env_file:
- api-credentials.env
- mongo-variables.env
volumes:
- ./server/:/home/node/app
- /home/node/app/node_modules
image: "emotionmap-backend"
depends_on:
- mongodb
ports:
- "8080:8080"
logging:
driver: "json-file"
options:
max-size: "10m"
environment:
NODE_ENV: development
# HOKIDAR_USEPOLLING: 'true'
client:
build: ./client
volumes:
- ./client/:/home/node/app
- /home/node/app/node_modules
image: "emotionmap-client"
depends_on:
- server
environment:
NODE_ENV: development
ports:
- "3000:3000"
logging:
driver: "json-file"
options:
max-size: "10m"
mongodb:
image: mongo:latest
env_file:
- mongo-variables.env
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db
logging:
driver: "json-file"
options:
max-size: "10m"
volumes:
mongodb_data: