-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.37 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
version: '2'
networks:
monitoring:
driver: bridge
services:
grafana:
image: monitoringartist/grafana-xxl
restart: always
container_name: grafana
networks:
- monitoring
ports:
- "3000:3000"
expose:
- 3000
links:
- prometheus:prometheus
volumes:
- "/home/docker/monitoring/grafana:/var/lib/grafana"
environment:
- "GF_SECURITY_ADMIN_PASSWORD=secret"
prometheus:
image: prom/prometheus
restart: always
container_name: prometheus
networks:
- monitoring
expose:
- 9090
ports:
- "9090:9090"
links:
- nodexporter:nodexporter
- cadvisor:cadvisor
volumes:
- "/home/docker/monitoring/prometheus/config:/etc/prometheus:rw"
- "/home/docker/monitoring/prometheus/data:/prometheus:rw"
nodexporter:
image: prom/node-exporter
restart: always
container_name: nodexporter
networks:
- monitoring
expose:
- 9100
ports:
- "9100:9100"
cadvisor:
image: google/cadvisor
restart: always
container_name: cadvisor
networks:
- monitoring
expose:
- 8080
ports:
- "8080:8080"
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"