YoungTroy

Watchtower config example

Sep 19th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. # WATCHTOWER CONFIG
  2.  
  3. watchtower:
  4. container_name: watchtower
  5. image: containrrr/watchtower
  6. restart: unless-stopped
  7. volumes:
  8. - /var/run/docker.sock:/var/run/docker.sock
  9. command: --cleanup --label-enable --interval 86400
  10. labels:
  11. - com.centurylinklabs.watchtower.scope=default
  12. environment:
  13. - WATCHTOWER_NOTIFICATIONS=slack #set notification type to slack
  14. - WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL= #paste url of your discord webhook here
  15. - WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER= #set name of webhook to show on discord
  16. - WATCHTOWER_NOTIFICATION_REPORT=true #self explanatory
  17.  
  18. #EXAMPLE OF A SERVICE WITH WATCHTOWER LABEL
  19.  
  20. qbittorrent:
  21. container_name: qbittorrent
  22. labels:
  23. - com.centurylinklabs.watchtower.enable=true #adding label variable will make watchtower check this service for updates
  24. image: lscr.io/linuxserver/qbittorrent:latest
  25. restart: unless-stopped
  26. environment:
  27. - PUID=1000
  28. - PGID=1000
  29. - TZ=Europe/London
  30. volumes:
  31. - /mnt/external/data:/data
Add Comment
Please, Sign In to add comment