-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose_grafana.yaml
51 lines (48 loc) · 2.11 KB
/
docker-compose_grafana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
grafana:
image: grafana/grafana:latest
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
restart: unless-stopped
depends_on:
- influx
environment:
- GF_PANELS_DISABLE_SANITIZE_HTML=$GF_PANELS_DISABLE_SANITIZE_HTML
- GF_AUTH_PROXY_ENABLED=$GF_AUTH_PROXY_ENABLED
- GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD
- GF_INSTALL_PLUGINS=$GF_INSTALL_PLUGINS
- GF_SERVER_ROOT_URL=$GF_SERVER_ROOT_URL
- GF_SERVER_SERVE_FROM_SUB_PATH=$GF_SERVER_SERVE_FROM_SUB_PATH
- GF_SECURITY_ADMIN_USER=$GF_SECURITY_ADMIN_USER
- GF_SECURITY_DISABLE_GRAVATAR=$GF_SECURITY_DISABLE_GRAVATAR
- GF_SECURITY_ALLOW_EMBEDDING=$GF_SECURITY_ALLOW_EMBEDDING
- GF_AUTH_DISABLE_LOGIN_FORM=$GF_AUTH_DISABLE_LOGIN_FORM
- GF_AUTH_SIGNOUT_REDIRECT_URL=$APP_HOST/forward-auth/oidc/logout
- GF_AUTH_PROXY_HEADER_NAME=$GF_AUTH_PROXY_HEADER_NAME
- GF_AUTH_PROXY_HEADER_PROPERTY=$GF_AUTH_PROXY_HEADER_PROPERTY
- GF_AUTH_PROXY_HEADERS=$GF_AUTH_PROXY_HEADERS
- GF_AUTH_PROXY_AUTO_SIGN_UP=$GF_AUTH_PROXY_AUTO_SIGN_UP
networks:
- pylon
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.grafana.rule=PathPrefix(`/grafana`)'
- 'traefik.http.services.grafana.loadbalancer.server.port=3000'
- 'traefik.http.middlewares.grafana-auth.forwardauth.address=http://pylon_auth:8080/forward-auth/auth?target=header&scope=grafana'
- 'traefik.http.middlewares.grafana-auth.forwardauth.authResponseHeaders=X-WEBAUTH-USER,X-WEBAUTH-NAME,X-WEBAUTH-EMAIL'
- 'traefik.http.routers.grafana.middlewares=grafana-auth@docker'
- 'carrier=grafana'
# - 'traefik.http.routers.grafana.rule=Host(`$APP_DOMAIN`) && PathPrefix(`/grafana`)'
# - 'traefik.http.routers.grafana.tls=true'
# - 'traefik.http.routers.grafana.tls.certresolver=le'
user: root
container_name: carrier-grafana
volumes:
# - $CUSTOM_CA_CERT:/etc/ssl/certs/custom-ca-cert.pem:ro
# - ${VOLUMES_PATH}/grafana:/var/lib/grafana
- grafana-data:/var/lib/grafana
volumes:
grafana-data: