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

mount data volume to grafana

This commit is contained in:
kev 2016-12-07 09:10:46 +08:00
parent a43de849e8
commit f81e1a232e
2 changed files with 7 additions and 1 deletions

View File

@ -10,9 +10,11 @@ measurement data.
```yaml
grafana:
image: vimagick/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
@ -23,6 +25,8 @@ grafana:
## up and running
```
$ mkdir data
$ chmod 777 data
$ docker-compose up -d
$ docker-compose exec grafana bash
>>> cat /etc/grafana/grafana.ini

View File

@ -2,6 +2,8 @@ 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