27 lines
770 B
Django/Jinja
27 lines
770 B
Django/Jinja
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,accelerator,hugetlb,referenced_memory,cpu_topology,resctrl"
|
||
ports:
|
||
- {{ cadvisor_port | default("8080") }}:{{ cadvisor_port | default("8080") }}
|
||
labels:
|
||
com.centurylinklabs.watchtower.enable: {{ cadvisor_watchtower_enable | default('true') }}
|
||
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
|