mirror of
https://github.com/luzifer-docker/netdata.git
synced 2024-12-30 00:51:17 +00:00
Add persistent data volume
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0dcd66bb5e
commit
983ccd177b
2 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ ENV NETDATA_PORT 19999
|
||||||
EXPOSE $NETDATA_PORT
|
EXPOSE $NETDATA_PORT
|
||||||
|
|
||||||
VOLUME /override
|
VOLUME /override
|
||||||
|
VOLUME /var/lib/netdata
|
||||||
|
|
||||||
ENTRYPOINT ["/src/run.sh"]
|
ENTRYPOINT ["/src/run.sh"]
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@ docker run -d --cap-add SYS_PTRACE \
|
||||||
-p 19999:19999 quay.io/luzifer/netdata
|
-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
|
## 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.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue