services: # monitor the host node_exporter: image: quay.io/prometheus/node-exporter:latest command: - '--path.rootfs=/host' network_mode: host # uses port 9100 pid: host restart: unless-stopped volumes: - '/:/host:ro'