Skip to content

Instantly share code, notes, and snippets.

@neilkillen
Last active June 2, 2020 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilkillen/7f86fa731c7df00e7b5d691f62e84d89 to your computer and use it in GitHub Desktop.
Save neilkillen/7f86fa731c7df00e7b5d691f62e84d89 to your computer and use it in GitHub Desktop.
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