christianlempa-boilerplates/docker-compose/prometheus-grafana/docker-compose.yml
2021-09-17 14:13:08 +02:00

30 lines
571 B
YAML

---
version: '3'
volumes:
prometheus-data:
driver: local
grafana-data:
driver: local
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- /etc/prometheus:/config
- prometheus-data:/prometheus
restart: unless-stopped
command:
- "--config.file=/config/prometheus.yml"
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped