better grafana docker compose configuration
This commit is contained in:
parent
850a0071fc
commit
6487764007
@ -5,13 +5,14 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
image: "traefik:v2.8"
|
image: "traefik:v2.8"
|
||||||
command:
|
command:
|
||||||
#- "--log.level=DEBUG"
|
|
||||||
- "--api.insecure=true" # allows accessing a Traefik dashboard, disable in production
|
- "--api.insecure=true" # allows accessing a Traefik dashboard, disable in production
|
||||||
- "--providers.docker=true" # enables the Docker configuration discovery
|
- "--providers.docker=true" # enables the Docker configuration discovery
|
||||||
- "--providers.docker.exposedbydefault=false" # do not expose Docker services by default
|
- "--providers.docker.exposedbydefault=false" # do not expose Docker services by default
|
||||||
- "--entrypoints.web.address=:5000" # create an entrypoint called web, listening on :5000
|
- "--entrypoints.web.address=:5000" # create an entrypoint called web, listening on :5000
|
||||||
|
- "--entrypoints.admin.address=:3333" # create an entrypoint called web, listening on :5000
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
- "3333:3333"
|
||||||
- "8765:8080"
|
- "8765:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
@ -73,16 +74,18 @@ services:
|
|||||||
|
|
||||||
# grafana dashboard
|
# grafana dashboard
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:7.5.7
|
image: grafana/grafana:7.5.7
|
||||||
ports:
|
restart: unless-stopped
|
||||||
- 3000:3000
|
volumes:
|
||||||
restart: unless-stopped
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
||||||
volumes:
|
- grafana-data:/var/lib/grafana
|
||||||
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
- sqlite:/database/
|
||||||
- grafana-data:/var/lib/grafana
|
environment:
|
||||||
- sqlite:/database/
|
- GF_INSTALL_PLUGINS=frser-sqlite-datasource
|
||||||
environment:
|
labels:
|
||||||
- GF_INSTALL_PLUGINS=frser-sqlite-datasource
|
- "traefik.enable=true" # tell Traefik this is something we would like to expose
|
||||||
|
- "traefik.http.routers.grafana.entrypoints=admin" # what entrypoint should be used for the frontend service.
|
||||||
|
- "traefik.http.routers.grafana.rule=Host(`localhost`)" #
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
sqlite:
|
sqlite:
|
||||||
|
2
plugin
2
plugin
@ -1 +1 @@
|
|||||||
Subproject commit 6aeb86186adc7054b0cf1ec80981bd5bfb3b86ae
|
Subproject commit b8f4f0534cfd2633377c26761f38b5177fa92b1f
|
Loading…
Reference in New Issue
Block a user