Skip to content

watchtower

This scans docker images and updates them automaticaly.

YAML
services:
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
#      - WATCHTOWER_MONITOR_ONLY=true
      - WATCHTOWER_CLEANUP=true # clean up unused images    
      - WATCHTOWER_POLL_INTERVAL=300 # this will start running after 300s default is 24h
      - WATCHTOWER_NOTIFICATIONS=email
      - [email protected]
      - [email protected]  
      - WATCHTOWER_NOTIFICATION_EMAIL_SERVER=mail.example.com
#      - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_TLS_SKIP_VERIFY
      - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT=587
      - [email protected] 
      - WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD=dpassword

Check the docs