Skip to content

Instantly share code, notes, and snippets.

@scyto
Last active August 24, 2026 01:48
Show Gist options
  • Select an option

  • Save scyto/38d05c98b18ce7ea57002583f1ebc449 to your computer and use it in GitHub Desktop.

Select an option

Save scyto/38d05c98b18ce7ea57002583f1ebc449 to your computer and use it in GitHub Desktop.
watchtower swarm template

πŸ“– This guide has moved

The maintained version now lives at watchtower swarm template, part of scyto/homelab-docs β€” searchable, cross-linked, and easier to keep current.

This gist stays put so the comments below remain readable β€” there is a lot of useful troubleshooting in them. For corrections, please open a PR or issue on the repo.


Description

This template runs watchtower. This is new for me so still seeing if i like it! (fingers cross this works, yes need to setuyp smtp email at some point, lol)

State Considerations for SWARM

none, this container can be cofigured entirely by env vars so i use those

Network Considerations

none, no published port is needed

Placement Considerations

None, by default this template will result in a single replica.

version: "3"

services:
  watchtower:
   image: containrrr/watchtower 
   volumes:
     - /var/run/docker.sock:/var/run/docker.sock
   environment:
     WATCHTOWER_SCHEDULE: 0 0 4 * * *
     TZ: America/Los_Angeles
     WATCHTOWER_CLEANUP: "true"
     WATCHTOWER_DEBUG: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment