From: Giorgio Ravera Date: Sun, 23 Aug 2026 16:23:29 +0000 (+0200) Subject: updated watchtower to new api X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;ds=inline;p=docker.git updated watchtower to new api --- diff --git a/watchtower/docker-compose.yaml b/watchtower/docker-compose.yaml index a65afab..c2b2425 100644 --- a/watchtower/docker-compose.yaml +++ b/watchtower/docker-compose.yaml @@ -13,12 +13,9 @@ services: #- WATCHTOWER_MONITOR_ONLY=false - WATCHTOWER_NO_STARTUP_MESSAGE=true - WATCHTOWER_NOTIFICATIONS_LEVEL=info - - WATCHTOWER_NOTIFICATIONS=email - - WATCHTOWER_NOTIFICATION_EMAIL_FROM=docker@giorgioravera.it - - WATCHTOWER_NOTIFICATION_EMAIL_TO=giorgio.ravera@gmail.com - - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.giorgioravera.it - #- WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=25 - #- WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=Docker WatchTower + - WATCHTOWER_NOTIFICATION_URL=smtp://mail.giorgioravera.it:465/?fromaddress=docker@giorgioravera.it&toaddresses=giorgio.ravera@gmail.com + #- WATCHTOWER_NOTIFICATION_URL=smtp://mail.giorgioravera.it:25/?fromaddress=docker@giorgioravera.it&toaddresses=giorgio.ravera@gmail.com&encryption=None&usestarttls=no&timeout=30s + #- WATCHTOWER_NOTIFICATION_TITLE_TAG=Docker WatchTower volumes: - /var/run/docker.sock:/var/run/docker.sock networks: diff --git a/watchtower/force.sh b/watchtower/force.sh index 6ef2898..0423828 100755 --- a/watchtower/force.sh +++ b/watchtower/force.sh @@ -51,27 +51,26 @@ function parse_options () run_without_notifications() { docker run --rm \ - -v /var/run/docker.sock:/var/run/docker.sock \ - nickfedor/watchtower \ - --cleanup \ - --revive-stopped \ - --run-once \ - --no-startup-message + -v /var/run/docker.sock:/var/run/docker.sock \ + nickfedor/watchtower \ + --cleanup \ + --revive-stopped \ + --run-once \ + --no-startup-message } run_with_notifications() { - docker run --rm \ - -v /var/run/docker.sock:/var/run/docker.sock \ - nickfedor/watchtower \ - --cleanup \ - --revive-stopped \ - --run-once \ - --no-startup-message \ - --notifications=email \ - --notification-email-from=docker@giorgioravera.it \ - --notification-email-to=giorgio.ravera@gmail.com \ - --notification-email-server=mail.giorgioravera.it + docker run --rm \ + -v /var/run/docker.sock:/var/run/docker.sock \ + nickfedor/watchtower \ + --cleanup \ + --revive-stopped \ + --run-once \ + --no-startup-message \ + --notifications-level info \ + --notification-url "smtp://mail.giorgioravera.it:465/?fromaddress=docker@giorgioravera.it&toaddresses=giorgio.ravera@gmail.com" + #--notification-url "smtp://mail.giorgioravera.it:25/?fromaddress=docker@giorgioravera.it&toaddresses=giorgio.ravera@gmail.com&encryption=None&usestarttls=no&timeout=30s" } parse_options $@