Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #15 from pedrocesar-ti/add_arm_support
Browse files Browse the repository at this point in the history
Changed images and permission to Grafana
  • Loading branch information
Pedro César de Azevedo authored May 5, 2019
2 parents 3bea7de + a03c6b8 commit 2950e1b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ Repositories used to

* [influxdb](https://hub.docker.com/_/influxdb/)
* [Grafana](https://hub.docker.com/r/grafana/grafana/)
* [tutumcloud/grafana](https://github.com/tutumcloud/grafana)
* [SpeedTest](https://github.com/sivel/speedtest-cli/)

Enjoy! :)
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '2'
services:
db:
image: influxdb:alpine
image: influxdb
container_name: influxdb
volumes:
- "./data/influxdb/:/var/lib/influxdb"
Expand All @@ -12,8 +12,8 @@ services:
env_file:
- ./env/db.env
web:
# build: ./speedweb
image: pedrocesarti/internet-speedtest-docker:grafana
# build: ./speedweb
image: pedrocesarti/internet-speedtest-docker:speedweb
container_name: speedweb
ports:
- "3000:3000"
Expand Down
9 changes: 8 additions & 1 deletion speedweb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM grafana/grafana:4.5.0
FROM grafana/grafana
MAINTAINER Pedro César de Azevedo <[email protected]>

ADD conf/grafana.db /var/lib/grafana/grafana.db
Expand All @@ -7,4 +7,11 @@ ADD conf/home.json /usr/share/grafana/public/dashboards/home.json
ENV GF_SERVER_ROOT_URL http://localhost
ENV GF_SECURITY_ADMIN_PASSWORD admin
ENV GF_AUTH_ANONYMOUS_ENABLED true

USER root
RUN chown -R root:root /etc/grafana && \
chmod -R a+r /etc/grafana && \
chown -R grafana:grafana /var/lib/grafana

USER grafana
ENTRYPOINT ["/run.sh"]

0 comments on commit 2950e1b

Please sign in to comment.