mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-08-07 07:15:03 +00:00
feat(docker): add grafana
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
This commit is contained in:
@@ -136,3 +136,7 @@ PAPERLESS_POSTGRES_USER=""
|
|||||||
PAPERLESS_POSTGRES_PASSWORD=""
|
PAPERLESS_POSTGRES_PASSWORD=""
|
||||||
PAPERLESS_POSTGRES_DB=""
|
PAPERLESS_POSTGRES_DB=""
|
||||||
PAPERLESS_POSTGRES_URL=""
|
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
|
||||||
Reference in New Issue
Block a user