Add persistent data volume

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-08-31 15:57:45 +02:00
parent 0dcd66bb5e
commit 983ccd177b
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ ENV NETDATA_PORT 19999
EXPOSE $NETDATA_PORT
VOLUME /override
VOLUME /var/lib/netdata
ENTRYPOINT ["/src/run.sh"]

View File

@ -12,6 +12,8 @@ docker run -d --cap-add SYS_PTRACE \
-p 19999:19999 quay.io/luzifer/netdata
```
To persist health check data and machine GUID you need to mount a persistent volume to `/var/lib/netdata`.
## Configuration
To configure alerts have a look at the [`health_alarm_notify.conf` template](templates/health_alarm_notify.conf). There you can see all variable names you need to specify as environment variables.