Skip to main content

Watchtower

version: "3.3"
services:
    watchtower:
        image: containrrr/watchtower
        container_name: watchtower
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        environment:
            - TZ=Europe/Paris
            - WATCHTOWER_MONITOR_ONLY=true
            - WATCHTOWER_SCHEDULE=0 0 10 ? * SAT
            - WATCHTOWER_CLEANUP=true
           # - WATCHTOWER_NOTIFICATIONS=email
           # - WATCHTOWER_NOTIFICATION_EMAIL_FROM=contact@stephanebonduel.contact@s.com
           # - WATCHTOWER_NOTIFICATION_EMAIL_TO=tiritibambix@free.t@free.fr
           # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=ssl0.ovh.net
           # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=ganjah12xxxxxxxx
           # - WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=RPi4
           Steph
           # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER=contact@stephanebonduel.contact@s.com
           # - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
            - WATCHTOWER_NOTIFICATIONS=shoutrrr
            - WATCHTOWER_NOTIFICATION_URL=discord://y-vjCXYcXbMLqTzXsja66HzXP_Rry0d6Whh391Od3YyNE-TS291ClgM8V0RRY5GZiVQI@902545314727215164web_hooooooooook
        restart: unless-stopped

Pour check une fois :

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once

Discord notif: https://containrrr.dev/shoutrrr/v0.5/services/discord/