61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
restart: unless-stopped
|
|
user: "PUID"
|
|
environment:
|
|
- PUID:PUID
|
|
- PGID:PGID
|
|
ports:
|
|
- 9090:9090
|
|
volumes:
|
|
- /path/to/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- /path/to/prometheus/prometheus-data:/prometheus
|
|
command:
|
|
- "--web.enable-lifecycle"
|
|
- "--config.file=/etc/prometheus/prometheus.yml"
|
|
|
|
node_exporter:
|
|
image: quay.io/prometheus/node-exporter:latest
|
|
container_name: node_exporter
|
|
command:
|
|
- "--path.rootfs=/host"
|
|
network_mode: host
|
|
pid: host
|
|
restart: unless-stopped
|
|
volumes:
|
|
- "/:/host:ro,rslave"
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana-oss:latest
|
|
ports:
|
|
- 3000:3000
|
|
user: "0"
|
|
volumes:
|
|
- /path/to/grafana-data:/var/lib/grafana
|
|
restart: unless-stopped
|
|
|
|
pve-exporter:
|
|
image: prompve/prometheus-pve-exporter:latest
|
|
container_name: pve-exporter
|
|
ports:
|
|
- "9221:9221"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /path/to/pve/pve.yml:/etc/prometheus/pve.yml
|
|
|
|
cadvisor:
|
|
image: gcr.io/cadvisor/cadvisor:latest
|
|
container_name: cadvisor
|
|
ports:
|
|
- "8080:8080"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
- /dev/disk/:/dev/disk:ro
|