Initial commit
This commit is contained in:
commit
38ba0aee08
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
CMD apt-get update && \
|
||||
apt-get install -y wget libfontconfig1 && \
|
||||
wget -O /tmp/grafana.deb https://grafanarel.s3.amazonaws.com/builds/grafana_3.1.1-1470047149_amd64.deb && \
|
||||
dpkg -i /tmp/grafana.deb && \
|
||||
rm /tmp/grafana.deb
|
||||
|
||||
WORKDIR /usr/share/grafana
|
||||
|
||||
ENV GF_DATABASE_TYPE=sqlite3 GF_DATABASE_PATH=/srv/grafana/db.sqlite GF_SECURITY_ADMIN_USER=admin GF_SECURITY_ADMIN_PASSWORD=admin GF_USERS_ALLOW_SIGN_UP=false GF_USERS_AUTH_ANONYMOUS=true GF_SERVER_HTTP_PORT=8080
|
||||
|
||||
USER grafana
|
||||
|
||||
ENTRYPOINT grafana
|
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
||||
docker-grafana
|
||||
==============
|
||||
|
||||
Grafana in a docker image
|
||||
|
||||
*Usage:*
|
||||
|
||||
* Build: `docker build -t grafana .`
|
||||
* Run run: `docker run -v /host/grafana/data/:/srv/grafana/ grafana`
|
||||
|
||||
By default, grafana runs on port 8080 but no ports are exposed. The default login is admin/admin.
|
||||
|
||||
*Tips:*
|
||||
|
||||
* Set admin password: `-e GF_SECURITY_ADMIN_PASSWORD=admin`
|
||||
* Set port: `-e GF_SERVER_HTTP_PORT=8080`
|
||||
* Other settings: http://docs.grafana.org/installation/configuration/
|
Loading…
Reference in New Issue
Block a user