feat(docker): add grafana

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
Rodney Osodo
2026-07-05 19:46:10 +00:00
parent 41da6e65ae
commit fdeb41d4b6
4 changed files with 44 additions and 0 deletions
+4
View File
@@ -136,3 +136,7 @@ PAPERLESS_POSTGRES_USER=""
PAPERLESS_POSTGRES_PASSWORD=""
PAPERLESS_POSTGRES_DB=""
PAPERLESS_POSTGRES_URL=""
### GRAFANA
GRAFANA_ADMIN_USER="admin"
GRAFANA_ADMIN_PASSWORD="admin"
@@ -0,0 +1,19 @@
services:
grafana:
container_name: grafana
image: docker.io/grafana/grafana:13.1.0
restart: unless-stopped
networks:
- homelab-network
security_opt:
- no-new-privileges:true
ports:
- 3060:3000
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
- GF_INSTALL_PLUGINS=
volumes:
- ~/docker-volumes/grafana/data:/var/lib/grafana
- ./docker-compose/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./docker-compose/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
@@ -0,0 +1,11 @@
apiVersion: 1
providers:
- name: default
orgId: 1
folder:
type: file
disableDeletion: false
updateIntervalSeconds: 30
options:
path: /etc/grafana/provisioning/dashboards
@@ -0,0 +1,10 @@
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus
type: prometheus
access: proxy
url: http://victoria-metrics:8428
isDefault: true
editable: false