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

14 lines
385 B
YAML

---
- name: watchtower container
docker_container:
name: watchtower
image: containrrr/watchtower:{{ services.watchtower.version }}
restart_policy: unless-stopped
networks:
- name: external_services
env:
WATCHTOWER_POLL_INTERVAL: "60"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/root/.docker/config.json:/config.json:ro"