christianlempa-boilerplates/docker-compose/prometheus/exporters/cadvisor/docker-compose.yml

22 lines
661 B
YAML
Raw Normal View History

2022-01-02 12:37:45 +01:00
---
version: '3'
services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.45.0 # latest tag is not updated...
# https://github.com/google/cadvisor/issues/3066
# To manual check versions: https://github.com/google/cadvisor/releases
2022-01-02 12:37:45 +01:00
container_name: cadvisor
# ports:
# - "8080:8080"
2022-08-15 16:41:43 +02:00
network_mode: host
2022-01-02 12:37:45 +01:00
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
devices:
2022-01-07 13:17:13 +01:00
- /dev/kmsg
restart: unless-stopped