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"
|
||||||
@ -74,8 +75,6 @@ services:
|
|||||||
# grafana dashboard
|
# grafana dashboard
|
||||||
grafana:
|
grafana:
|
||||||
image: grafana/grafana:7.5.7
|
image: grafana/grafana:7.5.7
|
||||||
ports:
|
|
||||||
- 3000:3000
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
|
||||||
@ -83,6 +82,10 @@ services:
|
|||||||
- sqlite:/database/
|
- sqlite:/database/
|
||||||
environment:
|
environment:
|
||||||
- GF_INSTALL_PLUGINS=frser-sqlite-datasource
|
- GF_INSTALL_PLUGINS=frser-sqlite-datasource
|
||||||
|
labels:
|
||||||
|
- "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