From 2c2db88ba6bcc1f4af5e81d1c40fc897e1ea6fd8 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Fri, 31 Oct 2025 11:47:38 +0100 Subject: [PATCH] Fix: Update docker-compose.yml image URLs to use localhost registry - Update regex to match both localhost and external registry URLs - Ensure docker-compose uses localhost:5000 for registry access - Fixes connection refused errors when docker-compose pulls images --- deployment/ansible/playbooks/deploy-update.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/ansible/playbooks/deploy-update.yml b/deployment/ansible/playbooks/deploy-update.yml index 342e6c98..72dba1f8 100644 --- a/deployment/ansible/playbooks/deploy-update.yml +++ b/deployment/ansible/playbooks/deploy-update.yml @@ -126,7 +126,8 @@ - name: Update docker-compose.yml with new image tag (all services) replace: path: "{{ app_stack_path }}/docker-compose.yml" - regexp: '^(\s+image:\s+){{ app_image }}:.*$' + # Match both localhost:5000 and git.michaelschiemer.de:5000 (or any registry URL) + regexp: '^(\s+image:\s+)(localhost:5000|git\.michaelschiemer\.de:5000|{{ docker_registry }})/{{ app_name }}:.*$' replace: '\1{{ app_image }}:{{ image_tag }}' when: image_pull.changed or image_tag != 'latest' register: compose_updated