-
Notifications
You must be signed in to change notification settings - Fork 1
/
grafana.yml
28 lines (28 loc) · 1001 Bytes
/
grafana.yml
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
services:
# Grafana - Graphical data visualization for InfluxDB data
grafana:
image: grafana/grafana:latest
container_name: grafana
security_opt:
- no-new-privileges:true
restart: unless-stopped
profiles: ["apps", "all"]
networks:
- t3_proxy
ports:
- "3000:3000"
user: "$PUID:$PGID"
volumes:
- $DOCKERDIR/appdata/grafana:/var/lib/grafana
environment:
GF_INSTALL_PLUGINS: "grafana-clock-panel,grafana-simple-json-datasource,grafana-worldmap-panel,grafana-piechart-panel"
labels:
- "traefik.enable=true"
# HTTP Routers
- "traefik.http.routers.grafana-rtr.entrypoints=websecure"
- "traefik.http.routers.grafana-rtr.rule=Host(`grafana.$DOMAINNAME_HS`)"
# Middlewares
- "traefik.http.routers.grafana-rtr.middlewares=chain-oauth@file"
# HTTP Services
- "traefik.http.routers.grafana-rtr.service=grafana-svc"
- "traefik.http.services.grafana-svc.loadbalancer.server.port=3000"