Files
archived-hipudding-teslamate/grafana/Dockerfile
2025-02-22 09:13:42 +01:00

35 lines
1.3 KiB
Docker

# Ensure selecting a tag that is available for arm/v7, arm64, and amd64
# https://hub.docker.com/r/grafana/grafana/tags
FROM grafana/grafana:11.5.2
ENV GF_ANALYTICS_REPORTING_ENABLED=false \
GF_AUTH_ANONYMOUS_ENABLED=false \
GF_AUTH_BASIC_ENABLED=false \
GF_SECURITY_ADMIN_PASSWORD=admin \
GF_SECURITY_ADMIN_USER=admin \
GF_SECURITY_ALLOW_EMBEDDING=true \
GF_SECURITY_DISABLE_GRAVATAR=true \
GF_USERS_ALLOW_SIGN_UP=false \
GF_USERS_DEFAULT_LANGUAGE=detect \
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/dashboards_internal/home.json \
DATABASE_PORT=5432 \
DATABASE_SSL_MODE=disable
# This experimental config option is temporarily disabled (incompatible with Scenes powered Dashboards introduced in Grafana 11.3.0)
# https://github.com/grafana/grafana/issues/95209
# ENV GF_DATE_FORMATS_USE_BROWSER_LOCALE=true
USER grafana
COPY logo.svg /usr/share/grafana/public/img/grafana_icon.svg
COPY favicon.png /usr/share/grafana/public/img/fav32.png
COPY apple-touch-icon.png /usr/share/grafana/public/img/apple-touch-icon.png
COPY datasource.yml /etc/grafana/provisioning/datasources/
COPY dashboards.yml /etc/grafana/provisioning/dashboards/
COPY dashboards/internal/*.json /dashboards_internal/
COPY dashboards/reports/*.json /dashboards_reports/
COPY dashboards/*.json /dashboards/
EXPOSE 3000