feat: Grafana op subpath

This commit is contained in:
Tibo De Peuter 2025-05-16 19:33:06 +02:00
parent 4e8a3d559e
commit fbab5c454f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 12 additions and 2 deletions

View file

@ -137,8 +137,10 @@ services:
dashboards:
image: grafana/grafana:latest
ports:
- '9002:3000'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.graphs.rule=PathPrefix(`/graphs`)'
- 'traefik.http.services.graphs.loadbalancer.server.port=3000'
restart: unless-stopped
volumes:
- dwengo_grafana_data:/var/lib/grafana

View file

@ -82,8 +82,12 @@ services:
image: grafana/grafana:latest
ports:
- '9002:3000'
labels:
- 'traefik.http.routers.graphs.rule=PathPrefix(`/graphs`)'
- 'traefik.http.services.graphs.loadbalancer.server.port=3000'
volumes:
- dwengo_grafana_data:/var/lib/grafana
- ./config/grafana/grafana.ini:/etc/grafana/grafana.ini
restart: unless-stopped
volumes:

View file

@ -0,0 +1,4 @@
[server]
root_url = http://localhost:3000/graphs
serve_from_sub_path = true