From 983ccd177b70f3cae9c823193f7785327f9a258f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 31 Aug 2017 15:57:45 +0200 Subject: [PATCH] Add persistent data volume Signed-off-by: Knut Ahlers --- Dockerfile | 1 + README.md | 2 ++ 2 files changed, 3 insertions(+) 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.