mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 00:44:27 +01:00
chore: add grafana + new group
This commit is contained in:
5
examples/grafana/README.md
Normal file
5
examples/grafana/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# References
|
||||
|
||||
- https://github.com/grafana/grafana
|
||||
|
||||
# Notes
|
||||
28
examples/grafana/docker-compose.yml
Normal file
28
examples/grafana/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana-oss:12.0.0
|
||||
container_name: grafana
|
||||
user: 1000:1000
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- GF_SERVER_ROOT_URL=https://grafana.example.com # <-- adjust
|
||||
expose:
|
||||
- 3000
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/grafana:/var/lib/grafana
|
||||
#networks:
|
||||
# - proxy
|
||||
#labels:
|
||||
# - traefik.enable=true
|
||||
# - traefik.docker.network=proxy
|
||||
# - traefik.http.routers.grafana.rule=Host(`grafana.example.com`)
|
||||
# - traefik.http.services.grafana.loadbalancer.server.port=3000
|
||||
# # Optional part for traefik middlewares
|
||||
# - traefik.http.routers.grafana.middlewares=local-ipwhitelist@file
|
||||
|
||||
#networks:
|
||||
# proxy:
|
||||
# external: true
|
||||
Reference in New Issue
Block a user