Split core and prometheus compose files by service

This commit is contained in:
beatz174-bit
2026-04-13 10:22:42 +10:00
parent cfbefed2e3
commit ff2d323309
13 changed files with 338 additions and 385 deletions
@@ -0,0 +1,23 @@
services:
node-exporter:
profiles: ["monitoring","all","prometheus-exporters"]
image: prom/node-exporter:latest
container_name: node-exporter
pid: host
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- "--path.rootfs=/rootfs"
restart: unless-stopped
networks:
# - edge
- monitor
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:9100/metrics"]
interval: 30s
timeout: 10s
retries: 3