-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
60 lines (54 loc) · 1.23 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
---
version: "3"
networks:
prometheus:
volumes:
grafana-data:
prometheus-data:
services:
ccache-exporter:
image: virtualtam/ccache-exporter
build: .
networks:
prometheus:
ports:
- 19508:9508
volumes:
- ${HOME}/.ccache:/home/exporter/.ccache:ro
grafana:
image: grafana/grafana:10.2.4
depends_on:
- prometheus
networks:
prometheus:
ports:
- 13000:3000
volumes:
- ./docker/grafana-datasources.yml:/etc/grafana/provisioning/datasources/all.yml
- ./docker/grafana-dashboards.yml:/etc/grafana/provisioning/dashboards/all.yml
- ./docker/dashboards:/opt/dashboards
- grafana-data:/var/lib/grafana
node-exporter:
image: prom/node-exporter:v1.7.0
networks:
prometheus:
pid: 'host'
ports:
- 19100:9100
cap_add:
- SYS_TIME
volumes:
- "/proc:/host/proc:ro,rslave"
- "/sys:/host/sys:ro,rslave"
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
prometheus:
image: prom/prometheus:v2.49.1
networks:
prometheus:
ports:
- 19090:9090
volumes:
- ./docker/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus