forked from Trustroots/trustroots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (75 loc) · 1.95 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
trustroots:
container_name: trustroots
restart: always
build: .
# 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
volumes:
- ./:/trustroots
- /trustroots/node_modules
- /trustroots/public
- /trustroots/uploads
command: npm run start:docker
links:
- mongodb:mongodb
- maildev:maildev
- influxdb:influxdb
ports:
- "3000:3000"
- "5858:5858"
- "35729:35729"
environment:
- NODE_ENV=development
- DB_1_PORT_27017_TCP_ADDR=mongodb
- PORT=3000
- DOMAIN=trustroots.dev
- VIRTUAL_HOST=localhost,trustroots.dev
- VIRTUAL_PORT=3000
## SMTP Server + Web Interface for viewing and testing emails during development.
## http://djfarrelly.github.io/MailDev/
maildev:
image: djfarrelly/maildev
container_name: maildev
restart: always
ports:
- "1080:1080"
## Database container
mongodb:
image: mongo:3.2
container_name: db_1
restart: always
command: "--smallfiles --logpath=/dev/null"
ports:
- "27017:27017"
## InfluxDB container
## https://github.com/tutumcloud/influxdb
influxdb:
image: tutum/influxdb:latest
container_name: influxdb
restart: always
ports:
- "8083:8083"
- "8086:8086"
environment:
- ADMIN_USER=root
- INFLUXDB_INIT_PWD=root
- PRE_CREATE_DB=trustroots
## Nginx proxy
## See settings per host from ./scripts/docker/nginx/*
## https://github.com/jwilder/nginx-proxy
nginx:
image: jwilder/nginx-proxy
container_name: nginx
restart: always
links:
- trustroots
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./scripts/docker/nginx/trustroots.dev:/etc/nginx/vhost.d/trustroots.dev
- ./scripts/docker/nginx/trustroots.dev_location:/etc/nginx/vhost.d/trustroots.dev_location
ports:
- "3080:80"