Post

All Along the WATCHTOWER!

Run from docker-compose:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
version: "3.8"
services:
 watchtower:
   image: containrrr/watchtower:latest
   container_name: watchtower
   environment:
     – TZ=Europe/Warsaw
     – WATCHTOWER_CLEANUP=true
     – WATCHTOWER_INCLUDE_STOPPED=true
     – WATCHTOWER_REVIVE_STOPPED=false
     – WATCHTOWER_SCHEDULE=0 0 2 * * *
     – WATCHTOWER_ROLLING_RESTART=true
   volumes:
     – /var/run/docker.sock:/var/run/docker.sock
   restart: unless-stopped

Refer to docs for additional variables/changes to above: Arguments – Watchtower (containrrr.dev)

This post is licensed under CC BY 4.0 by the author.