Skip to content

Instantly share code, notes, and snippets.

@scyto
Created February 12, 2022 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scyto/38d05c98b18ce7ea57002583f1ebc449 to your computer and use it in GitHub Desktop.
Save scyto/38d05c98b18ce7ea57002583f1ebc449 to your computer and use it in GitHub Desktop.
watchtower swarm template

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