ansible/roles/docker/tasks/services/watchtower.yml

15 lines
443 B
YAML
Raw Permalink Normal View History

2019-03-04 15:28:51 +00:00
---
- name: watchtower container
2022-11-26 08:52:41 +00:00
community.docker.docker_container:
name: watchtower
image: containrrr/watchtower:1.4.0
2019-03-04 15:28:51 +00:00
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2022-11-26 08:52:41 +00:00
- '{{ services.docker_registry.volume_folder }}/auth/config.json:/config.json'
2019-03-04 15:28:51 +00:00
env:
2022-11-26 08:52:41 +00:00
WATCHTOWER_LABEL_ENABLE: 'true'
WATCHTOWER_POLL_INTERVAL: '60'