grafana/docs/sources/installation/docker.md
James Turnbull 7da3ee72c7 More docs fixes
1. Set paragraph size to 80 chars for better readability.
2. More formatting fixes.
3. More spelling and grammar fixes.
2015-05-10 16:52:40 -04:00

1.1 KiB

page_title page_description page_keywords
Installing using Docker Grafana Installation guide using Docker container grafana, installation, docker, container, guide

Installing using Docker

Install from offical docker image

Grafana has an official Docker container.

$ docker run -i -p 3000:3000 grafana/grafana

All Grafana configuration settings can be defined using environment variables, this is especially useful when using the above container.

Docker volumes & ENV config

The Docker container exposes two volumes, the sqlite3 database in the folder /var/lib/grafana and configuration files is in /etc/grafana/ folder. You can map these volumes to host folders when you start the container:

$ docker run -d -p 3000:3000 \
    -v /var/lib/grafana:/var/lib/grafana \
    -e "GF_SECURITY_ADMIN_PASSWORD=secret  \
    grafana/grafana:develop

In the above example I map the data folder and sets a configuration option via an ENV instruction.

Configuration

The back-end web server has a number of configuration options. Go the Configuration page for details on all those options.