feat: Add Grafana
This commit is contained in:
parent
ce3410e73c
commit
490fa2a436
|
@ -0,0 +1,3 @@
|
||||||
|
GRAFANA_DOMAIN=grafana.cool.life
|
||||||
|
GF_SECURITY_ADMIN_USER=admin
|
||||||
|
GF_SECURITY_ADMIN_PASSWORD=admin
|
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
grafana:
|
||||||
|
name: ${GRAFANA_VOLUME_NAME:-grafana}
|
||||||
|
|
||||||
|
services:
|
||||||
|
grafana:
|
||||||
|
container_name: ${GRAFANA_CONTAINER_NAME:-grafana}
|
||||||
|
image: ${GRAFANA_IMAGE:-grafana/grafana:7.4.3}
|
||||||
|
volumes:
|
||||||
|
- grafana:/var/lib/grafana
|
||||||
|
environment:
|
||||||
|
GF_SECURITY_ADMIN_USER: ${GF_SECURITY_ADMIN_USER:?err}
|
||||||
|
GF_SECURITY_ADMIN_PASSWORD: ${GF_SECURITY_ADMIN_PASSWORD:?err}
|
||||||
|
GF_USERS_ALLOW_SIGN_UP: ${GF_USERS_ALLOW_SIGN_UP:-false}
|
||||||
|
GF_INSTALL_PLUGINS: ${GF_INSTALL_PLUGINS}
|
||||||
|
labels:
|
||||||
|
traefik.enable: 'true'
|
||||||
|
traefik.docker.network: ${TRAEFIK_NETWORK_NAME:-traefik}
|
||||||
|
traefik.http.routers.grafana.rule: 'Host(`${GRAFANA_DOMAIN:?err}`)'
|
||||||
|
traefik.http.routers.grafana.entrypoints: 'web'
|
Loading…
Reference in New Issue