--- version: "3.8" services: smartctl: image: "prometheuscommunity/smartctl-exporter:v0.15.0" volumes: - "/var/lib/smartmontools/json:/debug" - "/dev:/dev:ro" command: - "--smartctl.fake-data" networks: - "proxy" deploy: labels: - "prometheus.io/scrape=true" - "prometheus.io/port=9633" - "prometheus.io/path=/metrics"