mirror of
https://github.com/luzifer-docker/grafana.git
synced 2024-12-20 18:11:15 +00:00
Plain Grafana v2.5.0
This commit is contained in:
commit
a379c6a54d
2 changed files with 48 additions and 0 deletions
24
Dockerfile
Normal file
24
Dockerfile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
FROM debian:jessie
|
||||||
|
|
||||||
|
ENV GRAFANA_VERSION 2.5.0
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y unzip libfontconfig wget adduser openssl ca-certificates \
|
||||||
|
&& wget https://grafanarel.s3.amazonaws.com/builds/grafana_${GRAFANA_VERSION}_amd64.deb \
|
||||||
|
&& dpkg -i grafana_${GRAFANA_VERSION}_amd64.deb
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
VOLUME ["/var/lib/grafana"]
|
||||||
|
VOLUME ["/var/log/grafana"]
|
||||||
|
VOLUME ["/etc/grafana"]
|
||||||
|
|
||||||
|
WORKDIR /usr/share/grafana
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/sbin/grafana-server"]
|
||||||
|
CMD [ \
|
||||||
|
"--config", \
|
||||||
|
"/etc/grafana/grafana.ini", \
|
||||||
|
"cfg:default.paths.data=/var/lib/grafana", \
|
||||||
|
"cfg:default.paths.logs=/var/log/grafana" \
|
||||||
|
]
|
24
README.md
Normal file
24
README.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# luzifer-docker / grafana
|
||||||
|
|
||||||
|
This container currently only contains the [Grafana](http://grafana.org/) 2.5.0.
|
||||||
|
|
||||||
|
## Running your Grafana image
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
Start your image binding the external port `3000`.
|
||||||
|
|
||||||
|
docker run -i -p 3000:3000 grafana/grafana
|
||||||
|
|
||||||
|
Try it out, default admin user is admin/admin.
|
||||||
|
|
||||||
|
|
||||||
|
## Configuring your Grafana container
|
||||||
|
|
||||||
|
All options defined in conf/grafana.ini can be overriden using environment variables, for example:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -i -p 3000:3000 \
|
||||||
|
-e "GF_SERVER_ROOT_URL=http://grafana.server.name" \
|
||||||
|
-e "GF_SECURITY_ADMIN_PASSWORD=secret \
|
||||||
|
grafana/grafana
|
||||||
|
```
|
Loading…
Reference in a new issue