-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitoring-compose.yml
51 lines (47 loc) · 1.07 KB
/
monitoring-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"
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
privileged: true
environment:
- HOST=${HOST}
volumes:
- ./configs/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
restart: unless-stopped
ports:
- '9090:9090'
node-exporter:
image: prom/node-exporter
depends_on:
- prometheus
ports:
- '9100:9100'
cadvisor:
image: gcr.io/cadvisor/cadvisor
user: root
privileged: true
ports:
- '8080:8080'
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
grafana:
image: grafana/grafana
user: root
depends_on:
- prometheus
ports:
- '3000:3000'
volumes:
- ./grafana:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
container_name: grafana
hostname: grafana
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin