data.coop-ansible/roles/docker/tasks/services/watchtower.yml

14 lines
378 B
YAML
Raw Normal View History

2019-03-04 15:28:51 +00:00
---
- name: watchtower container
2019-03-04 15:28:51 +00:00
docker_container:
name: watchtower
image: containrrr/watchtower:latest
2019-03-04 15:28:51 +00:00
restart_policy: unless-stopped
env:
WATCHTOWER_POLL_INTERVAL: 60
2019-03-04 15:28:51 +00:00
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-08-09 17:47:40 +00:00
- "{{ docker_registry.volume_folder }}/auth/config.json:/config.json"