Skip to content

Instantly share code, notes, and snippets.

@MnifR
Last active July 2, 2021 10:33
Show Gist options
  • Save MnifR/38311ad4c29e21399efbbcc1b2210ce4 to your computer and use it in GitHub Desktop.
Save MnifR/38311ad4c29e21399efbbcc1b2210ce4 to your computer and use it in GitHub Desktop.
grafana+prometheus.yaml
version: '3.1'
volumes:
prometheus_data: {}
grafana_data: {}
services:
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- 9090:9090
restart: always
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment