diff --git a/Dockerfile b/Dockerfile index 69a49fb..ed4a76d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ ENV NETDATA_PORT 19999 EXPOSE $NETDATA_PORT VOLUME /override +VOLUME /var/lib/netdata ENTRYPOINT ["/src/run.sh"] diff --git a/README.md b/README.md index 704c91d..3316f55 100644 --- a/README.md +++ b/README.md @@ -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.