-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
executable file
·38 lines (38 loc) · 1.07 KB
/
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
version: '2'
volumes:
node_modules:
services:
app:
image: laurenkt/maxfacts:latest
volumes:
- ./data/storage:/opt/lt696dev/content:delegated
#- .:/home/node/app:delegated
- ./data/dump:/home/node/app/data/dump:delegated
#- node_modules:/home/node/app_node_modules
#- /home/node/app/node_modules # use node_modules local to the image to avoid platform conflicts
links:
- mongo
mongo:
image: mongo:latest
volumes:
- ./data/db:/data/db
ports:
- '27017:27017'
command: mongod --logpath=/dev/null # --smallfiles --fork --quiet
restore:
build:
context: .
dockerfile: mongo.Dockerfile
volumes:
- ./data/dump:/data/dump:delegated
links:
- mongo
nginx:
#TODO: logs
image: nginx:1.13-alpine
ports:
- '8080:80'
links:
- app
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:delegated