feat: Grafana op subpath
This commit is contained in:
parent
4e8a3d559e
commit
fbab5c454f
3 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
4
config/grafana/grafana.ini
Normal file
4
config/grafana/grafana.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[server]
|
||||
|
||||
root_url = http://localhost:3000/graphs
|
||||
serve_from_sub_path = true
|
Loading…
Add table
Add a link
Reference in a new issue