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

9 lines
265 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"
command: --cleanup --interval 300
restart: unless-stopped