-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
101 lines (96 loc) · 1.89 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
gateway:
build: ./gateway
restart: unless-stopped
depends_on:
- api
- grafana
- client
expose:
- "80"
- "443"
ports:
- "80:80"
- "443:443"
volumes:
- ${GATEWAY_CERTS}:/etc/ssl/gateway:ro
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"
client:
build:
context: .
dockerfile: Dockerfile-client
restart: unless-stopped
expose:
- "80"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"
api:
build:
context: .
dockerfile: Dockerfile-server
restart: unless-stopped
environment:
- NODE_ENV=production
volumes:
- ./config/:/home/node/config/:ro
depends_on:
- influxdb
- mongodb
expose:
- "4201"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"
grafana:
build: ./grafana
restart: unless-stopped
environment:
- GF_SERVER_ROOT_URL=http://127.0.0.1/grafana
depends_on:
- influxdb
expose:
- "3000"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"
influxdb:
image: influxdb:1.6.2
restart: unless-stopped
volumes:
- ./data/influxdb/:/var/lib/influxdb/
expose:
- "8086"
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"
mongodb:
image: mongo:4.1.2
restart: unless-stopped
environment:
- MONGO_DATA_DIR=/data/mongodb
- MONGO_LOG_DIR=/dev/null
volumes:
- ./data/mongodb/configdb:/data/configdb
- ./data/mongodb/db:/data/db
expose:
- "27017"
command: mongod --logpath=/dev/null
logging:
driver: json-file
options:
max-size: "200k"
max-file: "5"