I got Git Sync (i.e. also provisioning) working for the grafana/grafana:12.0.0 image by setting this in my docker-compose.yml:
environment:
GF_FEATURE_TOGGLES_ENABLE: "provisioning,kubernetesDashboards"
Grafana log:
msg="Config overridden from Environment variable" var="GF_FEATURE_TOGGLES_ENABLE=provisioning,kubernetesDashboards"
Docs from the grafana.ini inside the image:
[feature_toggles]
# there are currently two ways to enable feature toggles in the `grafana.ini`.
# you can either pass an array of feature you want to enable to the `enable` field or
# configure each toggle by setting the name of the toggle to true/false. Toggles set to true/false
# will take presidence over toggles in the `enable` list.
;enable = feature1,feature2
;feature1 = true
;feature2 = false
As far as I understand, only existing settings can be overwritten by environment variables, but no new settings added. Thus the latter way doesn’t work, I guess.