grafana/docs/sources/installation/docker.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

---
page_title: Installing using Docker
page_description: Grafana Installation guide using Docker container
page_keywords: grafana, installation, docker, container, guide
---
# Installing using Docker
2015-04-13 13:55:07 +08:00
## Install from offical docker image
Grafana has an offical 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
2015-04-14 22:53:54 +08:00
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:
2015-04-13 13:55:07 +08:00
$ docker run -d -p 3000:3000 \
2015-04-14 22:53:54 +08:00
-v /var/lib/grafana:/var/lib/grafana \
2015-04-13 13:55:07 +08:00
-e "GF_SECURITY_ADMIN_PASSWORD=secret \
grafana/grafana:develop
In the above example I map the data folder and set a config option via an `ENV` variable.
## Configuration
The backend web server has a number of configuration options. Go the [Configuration](/installation/configuration) page for details
2015-04-13 13:55:07 +08:00
on all those options.