Skip to content

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"