This repository provides instructions and configurations for running Grafana behind a Traefik proxy.
Before you begin, ensure you have the following prerequisites installed and set up:
-
Clone this repository to your server:
git clone https://github.com/erkenes/docker-grafana.git cd docker-grafana
-
Create a
.env
file and configure your settings. You can use the provided.env.example
cp .env.example .env nano .env
-
(optional) if you want to secure Node-RED with Authentik, uncomment the middleware line in the
docker-compose.yml
fileservices: grafana: labels: - 'traefik.http.routers.${PROJECT_IDENTIFIER}.middlewares=middlewares-authentik@file'
-
Start Grafana
docker compose up -d
.env
- This file contains the environment variables for the Grafana container. You can change the domain for Grafana by changing theGRAFANA_FQDN
variable.
If you encounter issues or have questions, please open an issue or refer to the official documentation for Grafana.
This project is licensed under the MIT License.
Contributions are welcome! If you have any improvements, bug fixes, or feature requests, please open an issue or submit a pull request.