Simple Grafana Docker Script
August 18, 2024•46 words
I was looking for a quick way to spin up a Grafana dashboard that would persist data between restarts.
Add the directories:
/apps/
/apps/grafana/
/apps/grafana/data/
/apps/grafana/scripts
cat grafana_docker.sh
!/bin/bash
start grafana
docker run -d -p 3000:3000 --name=grafana \
--volume /apps/grafana/data:/var/lib/grafana \
-e "GFINSTALLPLUGINS=grafana-clock-panel" \
grafana/grafana-enterprise