N-FIN-45: add example watchtower setup
This commit is contained in:
parent
25e85f68ed
commit
f36a44aacd
1 changed files with 13 additions and 0 deletions
13
docker/finances-prod/watchtower_setup.sh
Normal file
13
docker/finances-prod/watchtower_setup.sh
Normal 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
|
Loading…
Add table
Reference in a new issue