2026-07-24 01:37:21 +03:00
|
|
|
# Prometheus + Grafana monitoring stack.
|
|
|
|
|
services:
|
|
|
|
|
prometheus:
|
2026-07-28 02:31:48 +03:00
|
|
|
image: prom/prometheus:v3.13.1
|
2026-07-24 01:37:21 +03:00
|
|
|
container_name: prometheus
|
|
|
|
|
command:
|
|
|
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
|
|
|
ports:
|
|
|
|
|
- "9090:9090"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
|
|
|
- prometheus_data:/prometheus
|
|
|
|
|
# Lets Prometheus reach services running natively on the host.
|
|
|
|
|
extra_hosts:
|
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
|
|
grafana:
|
2026-07-28 02:31:48 +03:00
|
|
|
image: grafana/grafana:13.1.1
|
2026-07-24 01:37:21 +03:00
|
|
|
container_name: grafana
|
|
|
|
|
ports:
|
|
|
|
|
- "3000:3000"
|
|
|
|
|
environment:
|
|
|
|
|
# Dev-only: open Grafana with no login, full access.
|
|
|
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
|
|
|
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
|
|
|
|
volumes:
|
|
|
|
|
- ./grafana/provisioning:/etc/grafana/provisioning:ro
|
|
|
|
|
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
|
|
|
|
|
- grafana_data:/var/lib/grafana
|
|
|
|
|
depends_on:
|
|
|
|
|
- prometheus
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
prometheus_data:
|
|
|
|
|
grafana_data:
|