version: '2' services: prometheus: image: prom/prometheus:latest container_name: prometheus restart: always ports: - 9090:9090 volumes: - data-prometheus:/prometheus - ./prometheus.yml:/etc/prometheus/prometheus.yml links: - "blackbox_exporter:blackbox_exporter" blackbox_exporter: image: prom/blackbox-exporter:latest container_name: blackbox_exporter restart: always volumes: - ./blackbox_exporter.