-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 991 Bytes
/
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
version: "3"
services:
nginx:
image: nginx
container_name: nginx
restart: always
volumes:
- ./nginx/nginx.conf.raw:/etc/nginx/nginx.conf.raw
- /etc/letsencrypt:/etc/nginx/cert
env_file: .env.sample
ports:
- "80:80"
- "443:443"
links:
- dashboard
command: /bin/sh -c "envsubst '$$DOMAIN_NAME' < /etc/nginx/nginx.conf.raw > /etc/nginx/nginx.conf && nginx -g 'daemon off;'"
dashboard:
image: dashboard
container_name: dashboard-api
env_file: .env
volumes:
- ./:/usr/src/app
links:
- mongodb
ports:
- "8080:8080"
command: /bin/sh -c "cd /usr/src/app && npm start"
mongodb:
image: mongo
container_name: dashboard-mongodb
ports:
- "27017:27017"
volumes:
- dbdata:/data/db
configtxlator:
image: zhigui/configtxlator
container_name: dashboard-configtxlator
ports:
- "7059:7059"
volumes:
- /tmp/configtxlator/data:/work/data
volumes:
dbdata: {}