--- services: node_exporter: image: quay.io/prometheus/node-exporter:v1.8.0 container_name: node_exporter command: "--path.rootfs=/host" pid: host restart: unless-stopped volumes: - /:/host:ro,rslave