version: '3.8' services: cadvisor: image: ghcr.io/google/cadvisor:0.56.2 container_name: cadvisor privileged: true ports: - "8080:8080" volumes: - /var/run:/var/run:ro - /var/lib/docker/:/var/lib/docker:ro - /sys:/sys:ro - /:/rootfs:ro - /dev/disk:/dev/disk:ro network_mode: host restart: always healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8080/healthz"] interval: 30s timeout: 5s retries: 3 start_period: 10s deploy: resources: limits: cpus: '0.2' memory: 256M