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 <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 4.8 committed 2026-06-17 11:30:33 +02:00
1 parent fa4dd822dd
commit c97c67c19b
1 file changed
+3 -2
@@ -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: