-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·51 lines (46 loc) · 1.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
version: '3.2'
services:
cadvisor:
deploy:
endpoint_mode: dnsrr
mode: global
image: google/cadvisor
volumes:
- /:/rootfs:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /var/run:/var/run:rw
docker-exporter:
build:
context: ./docker/docker-exporter
dockerfile: ./Dockerfile
deploy:
endpoint_mode: dnsrr
mode: global
grafana:
deploy:
mode: replicated
image: grafana/grafana
node-exporter:
build:
context: ./docker/node-exporter
dockerfile: ./Dockerfile
command:
- -collector.procfs=/host/proc
- -collector.sysfs=/host/sys
- -collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)
- -collector.textfile.directory=/var/lib/prometheus/node-exporter
deploy:
endpoint_mode: dnsrr
mode: global
volumes:
- /:/rootfs:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
prometheus:
build:
context: ./docker/prometheus
dockerfile: ./Dockerfile
deploy:
endpoint_mode: dnsrr
mode: replicated