mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2025-01-06 06:20:14 +01:00
30 lines
571 B
YAML
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 |