diff --git a/docker-compose/prometheus/cadvisor/cadvisor.yaml b/docker-compose/prometheus/cadvisor/cadvisor.yaml new file mode 100644 index 0000000..fe8b566 --- /dev/null +++ b/docker-compose/prometheus/cadvisor/cadvisor.yaml @@ -0,0 +1,27 @@ +version: '3.8' +services: + cadvisor: + image: ghcr.io/google/cadvisor:0.56.2 + container_name: cadvisor + privileged: true + ports: + - "8080:8080" + volumes: + - /var/run:/var/run:ro + - /var/lib/docker/:/var/lib/docker:ro + - /sys:/sys:ro + - /:/rootfs:ro + - /dev/disk:/dev/disk:ro + network_mode: host + restart: always + healthcheck: + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:8080/healthz"] + interval: 30s + timeout: 5s + retries: 3 + start_period: 10s + deploy: + resources: + limits: + cpus: '0.2' + memory: 256M \ No newline at end of file