infrastructure/ansible/roles/watchtower/files/docker-compose.yml

12 lines
352 B
YAML

version: "2.3"
services:
watchtower:
image: containrrr/watchtower:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "{{ home }}/.docker/config.json:/config.json:ro"
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=600
restart: unless-stopped