mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
Build: Added devenv docker block for testing grafana with traefik.
This commit is contained in:
parent
8f2f07cabf
commit
f46ee12364
19
devenv/docker/blocks/traefik/configs/subpath_no_rewrite.yml
Normal file
19
devenv/docker/blocks/traefik/configs/subpath_no_rewrite.yml
Normal file
@ -0,0 +1,19 @@
|
||||
http:
|
||||
middlewares:
|
||||
compress-response:
|
||||
compress: {}
|
||||
|
||||
services:
|
||||
grafana-subpath:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: 'http://grafana-subpath:3000/'
|
||||
|
||||
routers:
|
||||
grafana-subpath:
|
||||
entryPoints:
|
||||
- web
|
||||
middlewares:
|
||||
- compress-response
|
||||
rule: 'Path(`/grafana`) || PathPrefix(`/grafana/`)'
|
||||
service: grafana-subpath
|
19
devenv/docker/blocks/traefik/docker-compose.yml
Normal file
19
devenv/docker/blocks/traefik/docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v2.1
|
||||
volumes:
|
||||
- './traefik.yml:/etc/traefik/traefik.yml'
|
||||
- './configs:/etc/traefik/configs'
|
||||
ports:
|
||||
- '80:80'
|
||||
- '8080:8080'
|
||||
links:
|
||||
- grafana-subpath
|
||||
|
||||
grafana-subpath:
|
||||
image: grafana/grafana:latest
|
||||
environment:
|
||||
- GF_SERVER_ROOT_URL=/grafana
|
||||
- GF_SERVER_SERVE_FROM_SUB_PATH=true
|
18
devenv/docker/blocks/traefik/traefik.yml
Normal file
18
devenv/docker/blocks/traefik/traefik.yml
Normal file
@ -0,0 +1,18 @@
|
||||
## traefik.yml
|
||||
|
||||
# Entrypoints enabled
|
||||
entryPoints:
|
||||
web:
|
||||
address: ':80'
|
||||
|
||||
# API and dashboard configuration
|
||||
api:
|
||||
insecure: true
|
||||
|
||||
# Loggings
|
||||
log: {}
|
||||
|
||||
# File configurations folder
|
||||
providers:
|
||||
file:
|
||||
directory: /etc/traefik/configs
|
Loading…
Reference in New Issue
Block a user