1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:34 +02:00
dockerfiles/grafana
2016-12-07 09:10:46 +08:00
..
docker-compose.yml mount data volume to grafana 2016-12-07 09:10:46 +08:00
Dockerfile upgrade grafana to 4.0.1 2016-12-07 09:03:31 +08:00
README.md mount data volume to grafana 2016-12-07 09:10:46 +08:00

grafana

Grafana is a leading open source application for visualizing large-scale measurement data.

docker-compose.yml

grafana:
  image: grafana/grafana
  ports:
    - "3000:3000"
  volumes:
    - ./data:/var/lib/grafana
  environment:
    - GF_SERVER_ROOT_URL=http://grafana.easypi.info/
    - GF_SECURITY_ADMIN_USER=admin
    - GF_SECURITY_ADMIN_PASSWORD=admin
  restart: always

up and running

$ mkdir data
$ chmod 777 data
$ docker-compose up -d
$ docker-compose exec grafana bash
>>> cat /etc/grafana/grafana.ini
>>> grafana-cli plugins install grafana-worldmap-panel
>>> exit
$ docker-compose restart
$ firefox http://localhost:3000/