-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
80 lines (73 loc) · 2.02 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
version: '2'
## Alternative: use Docker volume. This can get deleted if you're not careful.
#volumes:
# mongo:
services:
mongo:
## Mongo database for both kadira-engine and kadira-ui
image: mongo:3.4
volumes:
- "/opt/kadira-mongo:/data/db"
#- mongo:/data
command: mongod --smallfiles --replSet kadira
ports:
- "27017:27017"
restart: always
nginx-proxy:
## Proxy to map https://host:22022 to kadira-engine's port 11011
image: jwilder/nginx-proxy
ports:
- "22022:443"
## 80 and 443 need to mapped here so that letsencrypt can check server
- "443:443"
- "80:80"
volumes:
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "/etc/nginx/certs"
restart: always
letsencrypt:
## Automatic SSL certificate acquisition
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- nginx-proxy
restart: always
kadira-engine:
## This is the endpoint where Meteor app sends performance data
image: vladgolubev/kadira-engine
ports:
- "11011:11011"
environment:
- PORT=11011
- MONGO_URL=mongodb://mongo/kadira?replicaSet=kadira
- MONGO_SHARD_URL_one=mongodb://mongo/kadira?replicaSet=kadira
- VIRTUAL_HOST=${HOST}
- HTTPS_METHOD=noredirect
- LETSENCRYPT_HOST=${HOST}
- LETSENCRYPT_EMAIL=${EMAIL}
links:
- mongo
restart: always
kadira-rma:
## This computes statistics databases every minute.
image: vladgolubev/kadira-rma
environment:
- MONGO_URL=mongodb://mongo/kadira
links:
- mongo
restart: always
kadira-ui:
## Meteor app that presents the Kadira user interface.
image: vladgolubev/kadira-ui
ports:
#- "80:4000"
- "4000:4000"
environment:
- MONGO_URL=mongodb://mongo/kadira
- MONGO_SHARD_URL_one=mongodb://mongo/kadira
links:
- mongo
restart: always