-
Notifications
You must be signed in to change notification settings - Fork 135
/
docker-compose.yml
53 lines (49 loc) · 1.13 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
version: '3'
networks:
trustroots-network:
driver: bridge
volumes:
node-modules:
public:
dbdata:
services:
trustroots:
platform: linux/amd64
container_name: trustroots
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
# Mount the app dir in the container so our changes
# to the app code are also changed in the container
#
# Mount node_modules separately as a data volume, so
# that they won't get overwritten by app directory
# Read more: http://stackoverflow.com/a/32785014/1984644
networks:
- trustroots-network
volumes:
- ./:/trustroots
- node-modules:/trustroots/node_modules
- public:/trustroots/public
depends_on:
- mongodb
ports:
- '1080:1080'
- '3000:3000'
- '3001:3001'
- '5858:5858'
- '35729:35729'
environment:
- DB_1_PORT_27017_TCP_ADDR=mongodb
## Database container
mongodb:
image: mongo:4.4
container_name: db_1
volumes:
- dbdata:/data/db
restart: unless-stopped
ports:
- '27017:27017'
networks:
- trustroots-network