forked from data.coop/ansible
Sam A.
5d26e1cdea
The auth file created by the registry login task doesn't need to be stored in a non-default path.
14 lines
356 B
YAML
14 lines
356 B
YAML
---
|
|
- name: watchtower container
|
|
docker_container:
|
|
name: watchtower
|
|
image: containrrr/watchtower:latest
|
|
restart_policy: unless-stopped
|
|
env:
|
|
WATCHTOWER_POLL_INTERVAL: 60
|
|
networks:
|
|
- name: external_services
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
|
- "/root/.docker/config.json:/config.json:ro"
|