version: '3.8'

services:
  node-exporter:
    image: prom/node-exporter:latest
    restart: unless-stopped
    command:
      - '--web.listen-address=:9100'
      - '--path.rootfs=/host'
      - '--collector.systemd'
      - '--collector.processes'
    network_mode: host
    pid: host
    volumes:
      - '/:/host:ro,rslave'
