prometheus/grafana

This commit is contained in:
Chris
2022-10-31 23:15:12 +01:00
parent 2a1605fa37
commit 0dcc1c0246
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
version: '3'
services:
prometheus:
image: prom/prometheus
restart: unless-stopped
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.retention.time=365d'
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./data-prometheus:/prometheus
ports:
- "9090:9090"
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana:latest
restart: unless-stopped
volumes:
- ./data-grafana:/var/lib/grafana
ports:
- "9030:3000"
extra_hosts:
- "host.docker.internal:host-gateway"