--- services: prometheus: image: docker.io/prom/prometheus:v3.9.1 ports: - 9090:9090 volumes: - './docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro' - './docker/prometheus/clients.yml:/etc/prometheus/clients.yml:ro' node_exporter: image: quay.io/prometheus/node-exporter:v1.10.2 command: ['--path.rootfs=/host'] network_mode: host pid: host restart: unless-stopped volumes: - '/:/host:ro,rslave' process_exporter: image: docker.io/ncabatoff/process-exporter:v0.8.7 privileged: true command: ['-procfs', '/host/proc', '-config.path', '/config/config.yml'] ports: - 9256:9256 volumes: - '/proc:/host/proc:ro,rslave' - './docker/process_exporter:/config:ro'