services: node-exporter: profiles: ["monitoring","all","node-exporter", "prometheus"] 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