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

16 lines
477 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
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:{{ services.watchtower.version }}
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
- "{{ services.docker_registry.volume_folder }}/auth/config.json:/config.json"
2019-03-04 15:28:51 +00:00
env:
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_POLL_INTERVAL: "60"