cAdvisor docker-compose
version : '3.7'
services:
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.0
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
#- "8487:8080"
- target: 8080
published: 8487
protocol: tcp
mode: host
networks:
cadvisor_net:
deploy:
mode: global
placement:
constraints: [node.hostname == EVA-00]
cadvisor_01:
image: gcr.io/cadvisor/cadvisor:v0.47.0
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
#- "8487:8080"
- target: 8080
published: 8488
protocol: tcp
mode: host
networks:
cadvisor_net:
deploy:
mode: global
placement:
constraints: [node.hostname == EVA-01]
cadvisor_02:
image: gcr.io/cadvisor/cadvisor:v0.47.0
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
#- "8487:8080"
- target: 8080
published: 8489
protocol: tcp
mode: host
networks:
cadvisor_net:
deploy:
mode: global
placement:
constraints: [node.hostname == EVA-02]
networks:
cadvisor_net:
driver: overlay
Les dernières images sont disponibles sur le site officiel Docker Hub, accessibles via ce lien : cAdvisor