1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

update grafana

This commit is contained in:
kev 2017-03-21 13:31:43 +08:00
parent 363fefb187
commit 165896b1a9
2 changed files with 14 additions and 4 deletions

View File

@ -16,15 +16,20 @@ grafana:
volumes:
- ./data:/var/lib/grafana
environment:
- GF_SERVER_ROOT_URL=http://grafana.easypi.info/
- GF_SERVER_ROOT_URL=http://grafana.example.com:3000/
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- 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=******
restart: always
```
## up and running
```
```bash
$ mkdir data
$ chmod 777 data
$ docker-compose up -d
@ -33,7 +38,7 @@ $ docker-compose exec grafana bash
>>> grafana-cli plugins install grafana-worldmap-panel
>>> exit
$ docker-compose restart
$ firefox http://localhost:3000/
$ curl http://localhost:3000/
```
[1]: http://grafana.org/

View File

@ -5,7 +5,12 @@ grafana:
volumes:
- ./data:/var/lib/grafana
environment:
- GF_SERVER_ROOT_URL=http://grafana.easypi.info/
- GF_SERVER_ROOT_URL=http://grafana.example.com:3000/
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- 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=******
restart: always