demo_ansible/roles/watchtower/templates/docker-compose.yml.j2

13 lines
378 B
Django/Jinja

---
version: '3'
# watchtower updates container images with mutable tags.
services:
watchtower:
image: 'containrrr/watchtower:1.1.6'
# Use label `com.centurylinklabs.watchtower.enable="false"` to disable on container!
command: '--cleanup --schedule "0 0 4 * * *"' # UTC
restart: unless-stopped
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'