Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: '2.4'
networks:
prom.local:
services:
prometheus:
image: prom/prometheus
volumes:
- ./prometheus/config/:/etc/prometheus/
- ./prometheus/data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus_ver1.yml"
networks:
prom.local:
ports:
- '9090:9090'
grafana:
image: grafana/grafana
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning/
- ./data/grafana/grafana_storage:/var/lib/grafana
depends_on:
- prometheus
networks:
prom.local:
ports:
- '3000:3000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.