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:
parent
a43de849e8
commit
f81e1a232e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user