-
Notifications
You must be signed in to change notification settings - Fork 103
/
docker-compose.yml
91 lines (83 loc) · 1.71 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
version: '3.1'
services:
prometheus:
image: prom/prometheus
volumes:
- ./config:/prometheus
- ./data/prometheus:/data
command:
- '--config.file=/prometheus/prometheus.yml'
- '--storage.tsdb.path=/data'
ports:
- 9090:9090
depends_on:
- alertmanager
restart: always
networks:
- promnet
alertmanager:
image: prom/alertmanager
volumes:
- ./config:/prometheus
- ./data/alertmanager:/data
command:
- '--config.file=/prometheus/alertmanager.yml'
- '--storage.path=/data'
ports:
- 9093:9093
networks:
- promnet
node:
image: prom/node-exporter
ports:
- 9100:9100
restart: always
networks:
- promnet
cadvisor:
image: google/cadvisor
ports:
- 9880:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- promnet
collectd:
image: prom/collectd-exporter
ports:
- 9103:9103
restart: always
networks:
- promnet
alerta:
image: alerta/alerta-web
ports:
- 9080:8080
depends_on:
- db
environment:
- DEBUG=1 # remove this line to turn DEBUG off
- DATABASE_URL=mongodb://db:27017/monitoring
# - AUTH_REQUIRED=True
- PLUGINS=remote_ip,reject,heartbeat,blackout,prometheus
- ALERTMANAGER_API_URL=http://alertmanager:9093
restart: always
networks:
- promnet
- dbnet
db:
image: mongo
volumes:
- ./data/mongodb:/data/db
restart: always
networks:
- dbnet
networks:
promnet:
driver: bridge
dbnet:
driver: bridge