-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (65 loc) · 1.68 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
version: '3.9'
networks:
default:
name: "prometheus-alerts"
driver: bridge
volumes:
prometheus-data:
name: "prometheus-data"
grafana-data:
name: "grafana-data"
alertmanager-data:
name: "alertmanager-data"
services:
prometheus:
image: prom/prometheus:latest
restart: "always"
ports:
- "9090:9090"
volumes:
- "./prometheus:/etc/prometheus"
- "prometheus-data:/prometheus"
alertmanager:
image: prom/alertmanager:latest
restart: "always"
ports:
- "9093:9093"
volumes:
- "./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml"
- "./alertmanager/rules:/etc/prometheus/rules"
- "alertmanager-data:/alertmanager"
# deploy:
# resources:
# limits:
# memory: 256M
grafana:
image: grafana/grafana:latest
restart: "always"
environment:
- GF_SECURITY_ADMIN_PASSWORD
- GF_SECURITY_ADMIN_USER
- GF_USERS_DEFAULT_LANGUAGE
ports:
- "3000:3000"
volumes:
# - "./grafana/grafana.ini:/etc/grafana/grafana.ini"
- "./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources"
- "grafana-data:/var/lib/grafana"
node-exporter:
image: prom/node-exporter:latest
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="^/(sys|proc|dev|host|etc)($$|/)"'
prometheus-notifier:
image: lingcoder/prometheus-notifier:latest
restart: "always"
# ports:
# - "8080:8080"