Watchtower is a container-based solution for automating Docker container base image updates. It will pull down your new image, gracefully shut down your existing container and restart it with the same options that were used when it was deployed initially.
If you don't want to use gotify for the notification, feel free to remove the environnement variables from both the .env
and the docker-compose.yml
file.
Replace the environment variables in .env
with your own, then run :
sudo docker-compose up -d
Watchtower will then check for update every monday and send you a notification with gotify once an image is updated.
The image is automatically updated with watchtower thanks to the following label :
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
Automatically upgrading open-source images can be a huge security risk. The safest solution would be to only monitor the images and check the updated image before doing the upgrade.