Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 681 Bytes

README.md

File metadata and controls

36 lines (24 loc) · 681 Bytes

d-grafana

This repo contains files for creating a Grafana Docker container.

Build and run the docker image

./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.

Persistent data

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 \
    ...