-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
99 lines (92 loc) · 2.1 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
---
version: '3.8'
volumes:
prometheus-data:
driver: local
grafana-data:
driver: local
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- /etc/prometheus:/config
- prometheus-data:/prometheus
- ./ansible/roles/docker_deploy/files/prometheus/:/etc/prometheus/
command: "--config.file=/etc/prometheus/prometheus.yml"
restart: unless-stopped
links:
- cadvisor:cadvisor
- alertmanager:alertmanager
depends_on:
- cadvisor
ports:
- 9090:9090
networks:
- monitoring
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
- ./ansible/roles/docker_deploy/files/grafana/:/etc/grafana/
restart: unless-stopped
networks:
- monitoring
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
ports:
- 9100:9100
command:
- '--path.rootfs=/host'
pid: host
restart: unless-stopped
networks:
- monitoring
volumes:
- '/:/host:ro,rslave'
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
ports:
- 8080:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
restart: unless-stopped
privileged: true
devices:
- /dev/kmsg
networks:
- monitoring
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: uptime-kuma
ports:
- 3001:3001
volumes:
- ./ansible/roles/docker_deploy/files/uptime-kuma:/app/data
restart: always
networks:
- monitoring
alertmanager:
image: prom/alertmanager
container_name: alertmanager
ports:
- 9093:9093
volumes:
- ./alertmanager/:/etc/alertmanager/
networks:
- monitoring
restart: always
command:
- '--config.file=/etc/alertmanager/config.yml'
- '--storage.path=/alertmanager'
networks:
monitoring: {}