N-FIN-45: add example watchtower setup

This commit is contained in:
Markus Thielker 2024-03-24 20:17:28 +01:00
parent 25e85f68ed
commit f36a44aacd
No known key found for this signature in database

View file

@ -0,0 +1,13 @@
#
# run this container on your server to keep the labeled containers up to date
#
# run 'docker login' to authenticate with your docker hub account
# label your containers with 'com.centurylinklabs.watchtower.enable=true' to enable watchtower
#
docker run -d \
--name watchtower \
--restart unless-stopped \
-v $HOME/.docker/config.json:/config.json \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower -s "*/30 * * * * *" --label-enable