Skip to content

Watchtower is a docker contained app that update all you docker containers automatically.

Use the following docker-compose file, to start a watchtower instance that run each day at 6am :

version: '3.8'
services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
command: --schedule "0 0 6 * * *" --cleanup
env_file:
- stack.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/raphaelgc/.docker/config.json:/config.json
restart: unless-stopped

Since I moved to App iconDocker swarm I now use 🐑Shepherd.