- Docker
- Docker-compose
Change the time zone in the .env
file.
TimeZone='Europe/Berlin'
$ cd watchtower
$ docker-compose up -d
or
./docker.sh -S watchtower -r
Done. It will now start updating your containers every day.
You can change the intervall by edeting this line: command: --interval 86400
. Write here your new time in seconds.
Everytime a container gets updated you can send a push message to your phone. This is works with the push service Gotify
. You just have to add those lines to your environment variables.
- notifications-level=trace
- WATCHTOWER_NOTIFICATIONS=gotify
- WATCHTOWER_NOTIFICATION_GOTIFY_URL=http://gotify
- WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN=XXXXXXXXXXXXXXX
- WATCHTOWER_NOTIFICATION_GOTIFY_TLS_SKIP_VERIFY=true
Replace the WATCHTOWER_NOTIFICATION_GOTIFY_TOKEN
with a generated one from Gotify
.
Also Replace WATCHTOWER_NOTIFICATION_GOTIFY_URL
with the name of your gotify container.
Both containers must be in the same network!!!