21 lines
488 B
YAML
21 lines
488 B
YAML
# {{ ansible_managed }}
|
|
version: '3.1'
|
|
|
|
services:
|
|
cadvisor:
|
|
image: gcr.io/cadvisor/cadvisor:{{ docker_cadvisor_version }}
|
|
privileged: true
|
|
devices:
|
|
- /dev/kmsg:/dev/kmsg
|
|
volumes:
|
|
- /:/rootfs:ro
|
|
- /var/run:/var/run:ro
|
|
- /sys:/sys:ro
|
|
- {{ docker_cadvisor_data_dir }}/docker:/var/lib/docker:ro
|
|
restart: always
|
|
userns_mode: host
|
|
ports:
|
|
- {{ docker_cadvisor_port }}:8080
|
|
labels:
|
|
org.label-schema.group: "monitoring"
|
|
|