-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
121 lines (112 loc) · 2.34 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '3.7'
volumes:
alertmanager:
grafana:
prometheus:
networks:
back-tier:
driver: bridge
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus:/prometheus
command:
- '--storage.tsdb.path=/prometheus'
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- 9090:9090
networks:
- back-tier
node-exporter:
container_name: node-exporter
image: prom/node-exporter
depends_on:
- prometheus
volumes:
- /proc:/host/proc
- /sys:/host/sysfs
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sysfs'
- '--collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"'
ports:
- 9100:9100
networks:
- back-tier
alertmanager:
container_name: alertmanager
image: prom/alertmanager
volumes:
- alertmanager:/etc/alertmanager
- ./alertmanager/config.yml:/etc/alertmanager/config.yml
depends_on:
- prometheus
- node-exporter
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
ports:
- 9093:9093
networks:
- back-tier
pushgateway:
container_name: pushgateway
image: prom/pushgateway
depends_on:
- prometheus
- node-exporter
- alertmanager
ports:
- 9091:9091
networks:
- back-tier
blackbox:
container_name: blackbox
image: prom/blackbox-exporter
volumes:
- ./blackbox:/config
command:
- '--config.file=/config/blackbox.yml'
depends_on:
- prometheus
- node-exporter
- alertmanager
- pushgateway
ports:
- 9115:9115
networks:
- back-tier
demo:
container_name: demo
build: ./demo/
links:
- prometheus:prometheus
depends_on:
- prometheus
- node-exporter
- alertmanager
- pushgateway
- blackbox
ports:
- 8001:8001
- 8002:8002
networks:
- back-tier
grafana:
container_name: grafana
image: grafana/grafana-oss
links:
- prometheus:prometheus
depends_on:
- prometheus
- node-exporter
- demo
volumes:
- grafana:/var/lib/grafana
ports:
- 3000:3000
networks:
- back-tier