This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
pi-ansible/roles/docker/tasks/services/watchtower.yml

12 lines
329 B
YAML
Raw Normal View History

2022-12-22 19:18:27 +00:00
# vim: ft=yaml.ansible
2022-12-22 16:58:48 +00:00
---
- name: Deploy Watchtower Docker container
docker_container:
name: watchtower
image: "containrrr/watchtower:{{ services.watchtower.version }}"
restart_policy: unless-stopped
env:
2022-12-23 15:57:37 +00:00
WATCHTOWER_POLL_INTERVAL: '3600'
2022-12-22 16:58:48 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw