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

15 lines
408 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: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
- /root/.docker/config.json:/root/.docker/config.json
env:
WATCHTOWER_LABEL_ENABLE: "true"
WATCHTOWER_POLL_INTERVAL: "600"
2019-03-04 15:28:51 +00:00