Fix mount point for Watchtower

The auth file created by the registry login task doesn't need to be
stored in a non-default path.
This commit is contained in:
Sam A. 2022-11-18 20:57:15 +01:00
parent a4a06d8a58
commit 5d26e1cdea
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA
2 changed files with 3 additions and 4 deletions

View file

@ -28,9 +28,8 @@
args:
creates: "{{ docker_registry.volume_folder }}/auth/htpasswd"
- name: log in to local registry
- name: log in to registry
docker_login:
registry: "{{ docker_registry.domain }}"
username: "docker"
password: "{{ docker_password }}"
config_path: "{{ docker_registry.volume_folder }}/auth/config.json"

View file

@ -9,5 +9,5 @@
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "{{ docker_registry.volume_folder }}/auth/config.json:/config.json"
- "/var/run/docker.sock:/var/run/docker.sock"
- "/root/.docker/config.json:/config.json:ro"