-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·57 lines (51 loc) · 1.24 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
version: '3.3'
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alertrules.yml:/etc/prometheus/alertrules.yml
- ./prometheus/targets.json:/etc/prometheus/targets.json
command:
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=7d'
- '--config.file=/etc/prometheus/prometheus.yml'
restart: always
networks:
- monitor
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
depends_on:
- prometheus
restart: always
networks:
- monitor
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
ports:
- 9100:9100
restart: always
networks:
- monitor
alertmanager:
image: prom/alertmanager:latest
container_name: alert-manager
ports:
- 9093:9093
volumes:
- ./alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
command:
- --config.file=/etc/alertmanager/alertmanager.yml
restart: always
networks:
- monitor
networks:
monitor:
driver: bridge