version: '3.8' networks: monitoring: external: true services: node-exporter: image: prom/node-exporter:v1.8.2 command: - '--path.procfs=/host/proc' - '--path.rootfs=/rootfs' - '--path.sysfs=/host/sys' - '--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)' volumes: - '/proc:/host/proc:ro' - '/sys:/host/sys:ro' - '/:/rootfs:ro,rslave' networks: - monitoring deploy: mode: global resources: limits: memory: 128M cpus: '0.2' reservations: memory: 32M cpus: '0.05' restart_policy: condition: on-failure delay: 5s max_attempts: 3 logging: driver: "json-file" options: max-size: "5m" max-file: "2"