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

13 lines
325 B
YAML

---
- name: watchtower container
docker_container:
name: watchtower
image: v2tec/watchtower
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: ["--label-enable"]