services: zebra: container_name: zebra build: context: ../ dockerfile: docker/Dockerfile target: runtime args: - FEATURES=prometheus volumes: - zebrad-cache:/home/zebra/.cache/zebra tty: true environment: - FEATURES=prometheus network_mode: "host" ports: - 9999:9999 prometheus: container_name: prometheus image: prom/prometheus volumes: - prometheus-cache:/prometheus configs: - source: prometheus-config target: /etc/prometheus/prometheus.yml network_mode: "host" ports: - 9090:9090 grafana: container_name: grafana image: grafana/grafana volumes: - grafana-cache:/var/lib/grafana network_mode: "host" ports: - 3000:3000 volumes: zebrad-cache: driver: local grafana-cache: driver: local prometheus-cache: driver: local configs: prometheus-config: file: ../prometheus.yaml