Coolify only copies docker-compose.yaml and .env to its working directory —
the ./grafana/provisioning bind mount source was always empty on the server,
so Grafana started with no datasource or dashboard configured (causing the
'Failed to load home dashboard' error).
Fix: build a custom Grafana image (grafana/Dockerfile) that COPYs the
provisioning directory at image build time. Grafana substitutes
${GRAFANA_DB_RO_PASSWORD} at startup from the env var now in Coolify's store.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 lines
231 B
Docker
5 lines
231 B
Docker
FROM grafana/grafana:11.0.0
|
|
|
|
# Bake provisioning files into the image so Coolify bind mounts are not needed.
|
|
# Grafana substitutes ${ENV_VAR} references in provisioning files at startup.
|
|
COPY provisioning /etc/grafana/provisioning
|