This repo contains files for creating a Grafana Docker container.
./build_grafana.sh
./run_grafana.sh
This uses the run script in scripts/
to run the
grafana server.
The build script builds the container image using the Dockerfile.
The run script contains the docker run
command.
This docker image is based on grafana-docker on github.
MongoDB will store data in /var/lib/grafana
.
Map /var/lib/grafana
to the host to keep data persistent.
$ mkdir -p /tmp/mongodb
$ docker run \
...
-v /tmp/grafana:/var/lib/grafana \
...