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

14 lines
361 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
2022-11-19 17:19:43 +00:00
image: containrrr/watchtower:amd64-1.5.1
2019-03-04 15:28:51 +00:00
restart_policy: unless-stopped
networks:
- name: external_services
env:
WATCHTOWER_POLL_INTERVAL: 60
2019-03-04 15:28:51 +00:00
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/root/.docker/config.json:/config.json:ro"