Add stacks promtail and monitoring

This commit is contained in:
Semaphore
2026-02-17 10:00:30 +00:00
parent f7e5696cbb
commit 2e44a295aa
2 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
services:
node_exporter:
image: prom/node-exporter:latest
container_name: node_exporter
restart: unless-stopped
ports:
- "9100:9100"
volumes:
- /:/host:ro,rslave
command:
- '--path.rootfs=/host'
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: unless-stopped
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
privileged: true