version: '3' services: prometheus: image: prom/prometheus container_name: prometheus volumes: - ./data/prometheus/storage:/prometheus - ./prometheus/prometheus.yaml:/etc/prometheus/prometheus.yml:ro cadvisor: image: gcr.io/cadvisor/cadvisor:latest container_name: cadvisor volumes: - /:/rootfs:ro - /var/run:/var/run:rw - /sys:/sys:ro - /var/lib/docker/:/var/lib/docker:ro