-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
53 lines (49 loc) · 1.25 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
version: '3.3'
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: always
links:
- prometheus
ports:
- "3000:3000"
volumes:
- ${PROMETHEUS_ROOT}/configs/grafana.ini:/etc/grafana/grafana.ini
- ${PROMETHEUS_ROOT}/data/grafana:/var/lib/grafana
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
links:
- alertmanager
- node-exporter
ports:
- "9090:9090"
volumes:
- ${PROMETHEUS_ROOT}/configs/prometheus.yml:/etc/prometheus/prometheus.yml
- ${PROMETHEUS_ROOT}/data/prometheus:/prometheus
alertmanager:
image: prom/alertmanager
container_name: alertmanager
restart: always
ports:
- "9093:9093"
volumes:
- ${PROMETHEUS_ROOT}/data/alertmanager:/alertmanager
node-exporter:
privileged: true
image: prom/node-exporter
container_name: node-exporter
restart: always
ports:
- "9100:9100"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- "--collector.filesystem.ignored-mount-points"
- "^/(rootfs/)?(dev|etc|host|proc|run|sys|volume1)($$|/)"