docs: add automatic updates example in README.md

This commit is contained in:
dec0dOS 2021-03-22 22:47:31 +03:00
parent c64221b5ae
commit 1363c474ba

View file

@ -161,6 +161,15 @@ To get the latest version just run
docker-compose down && docker-compose pull && docker-compose up -d --no-build
in the folder where `docker-compose.yml` is located. Backup is not required as your data is saved in Docker volumes but recommended.
You could also set up [watchtower](https://github.com/containrrr/watchtower) for automatic updates.
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
--restart always \
containrrr/watchtower \
--cleanup --include-restarting \
dec0dos/zero-ui dec0dos/zerotier-controller
### Backup
The easiest way to create your ZeroUI data backup is to use the following commands: