27 lines
723 B
Plaintext
Raw Permalink Normal View History

2022-11-16 12:04:24 +01:00
version: '3.7'
services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: unless-stopped
command:
- "--housekeeping_interval=30s"
- "--docker_only=true"
- "--disable_metrics=percpu,sched,tcp,udp,disk,diskIO,hugetlb,referenced_memory,cpu_topology,resctrl"
2022-11-16 12:04:24 +01:00
ports:
2024-07-08 14:18:32 +02:00
- {{ cadvisor_port | default("8080") }}:8080
2024-03-18 10:52:47 +01:00
labels:
com.centurylinklabs.watchtower.enable: {{ cadvisor_watchtower_enable | default('true') }}
2022-11-16 12:04:24 +01:00
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
depends_on:
- redis
redis:
image: redis:latest
container_name: cadvisor_redis