selfhosted-apps-docker/watchtower
DoTheEvolution abd2c15287 update
2020-04-10 00:52:11 +02:00
..
readme.md update 2020-04-10 00:52:11 +02:00

Watchtower in docker

guide by example

purpose

Automatic updates of containers.

files and directory structure

/home
└── ~
    └── docker
        └── watchtower
            └── 🗋 docker-compose.yml

docker-compose

scheduled to run every saturday at midnight
no need to be on the same network as other containers, no need .env file

docker-compose.yml

version: '3'
services:
  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower
    hostname: watchtower
    restart: unless-stopped
    environment:
      - TZ=Europe/Prague
      - WATCHTOWER_SCHEDULE=0 0 0 * * SAT
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_TIMEOUT=30s
      - WATCHTOWER_DEBUG=false
      - WATCHTOWER_INCLUDE_STOPPED=false
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

reverse proxy

no web interface

update

it updates itself