1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-02 09:21:53 +02:00
dockerfiles/grafana/README.md

50 lines
1.1 KiB
Markdown
Raw Normal View History

2015-08-15 20:35:36 +02:00
grafana
=======
2016-05-10 11:59:27 +02:00
![](https://badge.imagelayers.io/vimagick/grafana:latest.svg)
[Grafana][1] is a leading open source application for visualizing large-scale
2015-08-15 20:35:36 +02:00
measurement data.
2016-05-10 11:59:27 +02:00
2018-04-28 11:11:10 +02:00
[Installing using Docker][2]
2016-05-10 11:59:27 +02:00
## docker-compose.yml
```yaml
grafana:
2016-12-07 03:10:46 +02:00
image: grafana/grafana
2016-05-10 11:59:27 +02:00
ports:
- "3000:3000"
2016-12-07 03:10:46 +02:00
volumes:
- ./data:/var/lib/grafana
2016-05-10 11:59:27 +02:00
environment:
2017-03-21 07:31:43 +02:00
- GF_SERVER_ROOT_URL=http://grafana.example.com:3000/
2016-05-10 11:59:27 +02:00
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
2017-03-21 07:31:43 +02:00
- GF_SMTP_ENABLED=true
- GF_SMTP_HOST=smtp.gmail.com:587
- GF_SMTP_USER=grafana@example.com
- GF_SMTP_FROM_ADDRESS=grafana@example.com
- GF_SMTP_PASSWORD=******
2018-01-27 09:24:28 +02:00
- GF_USERS_ALLOW_SIGN_UP=false
2019-04-07 13:35:58 +02:00
- GF_ALERTING_ERROR_OR_TIMEOUT=keep_state
2016-05-10 11:59:27 +02:00
restart: always
```
## up and running
2017-03-21 07:31:43 +02:00
```bash
2016-12-07 03:10:46 +02:00
$ mkdir data
$ chmod 777 data
2016-05-10 11:59:27 +02:00
$ docker-compose up -d
$ docker-compose exec grafana bash
2016-06-01 10:11:09 +02:00
>>> cat /etc/grafana/grafana.ini
>>> grafana-cli plugins install grafana-worldmap-panel
2016-05-10 11:59:27 +02:00
>>> exit
2016-06-01 10:11:09 +02:00
$ docker-compose restart
2017-03-21 07:31:43 +02:00
$ curl http://localhost:3000/
2016-05-10 11:59:27 +02:00
```
2016-05-11 13:39:56 +02:00
[1]: http://grafana.org/
2018-04-28 11:11:10 +02:00
[2]: http://docs.grafana.org/installation/docker/