version: "3"
services:
  node_exporter:
    image: quay.io/prometheus/node-exporter:latest
    container_name: node_exporter
    command:
      - '--path.rootfs=/host'
    network_mode: host
    pid: host
    restart: unless-stopped
    volumes:
      - '/:/host:ro,rslave'
  blackbox_exporter:
    image: quay.io/prometheus/blackbox-exporter:latest
    container_name: blackbox_exporter
    command:
      - '--config.file=/config/blackbox.yml'
    restart: unless-stopped
    ports:
      - 9115:9115
    volumes:
      - ./bb_conf:/config
