-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 998 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 998 Bytes
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
services:
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
links:
- cadvisor:cadvisor
- node_exporter:node_exporter
expose:
- 9090
grafana:
image: grafana/grafana:latest
depends_on:
- prometheus
ports:
- 3000:3000
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
node_exporter:
image: prom/node-exporter:latest
privileged: true
ports:
- 9100:9100
expose:
- 9100
cadvisor:
image: gcr.io/cadvisor/cadvisor
privileged: true
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
expose:
- 8080
# Simple demo application
demo-app:
image: yeasy/simple-web:latest
ports:
- 80:80
expose:
- 80