From c97c67c19b1466a8cf0505ba2a02a7fbc8546e17 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 11 Jun 2026 22:09:54 +0200 Subject: [PATCH] fix(web-app-seaweedfs): correct proxy resource-limit rendering in compose The proxy service injected resource limits via a bespoke filter/include block without the trailing newline emitter, so Jinja's indent filter dropped the trailing newline and trim_blocks merged 'pids_limit: 128' with the following 'volumes:' key, producing an invalid compose.yml (mapping values are not allowed here). Mirror the proven base.yml.j2 idiom (set service_name, indent(4), then an explicit newline) so the keys stay on separate lines. Co-Authored-By: Claude Opus 4.8 --- roles/web-app-seaweedfs/templates/compose.yml.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/web-app-seaweedfs/templates/compose.yml.j2 b/roles/web-app-seaweedfs/templates/compose.yml.j2 index e7b9c982bf..ab7b2cc109 100644 --- a/roles/web-app-seaweedfs/templates/compose.yml.j2 +++ b/roles/web-app-seaweedfs/templates/compose.yml.j2 @@ -22,10 +22,11 @@ container_name: {{ SEAWEEDFS_PROXY_CONTAINER }} hostname: proxy restart: {{ DOCKER_RESTART_POLICY }} -{% filter indent(4, true) %} {% set service_name = 'proxy' %} -{% include 'roles/sys-svc-container/templates/resource.yml.j2' %} +{% filter indent(4) %} + {% include 'roles/sys-svc-container/templates/resource.yml.j2' %} {% endfilter %} +{{ "\n" }} volumes: - "{{ [ lookup('container', application_id, 'directories.volumes'), 'nginx.conf' ] | path_join }}:/etc/nginx/conf.d/default.conf:ro" depends_on: