Fix indentation of rendered compose.yaml

Jinja control tags are now at column 0 without whitespace modifiers: with
trim_blocks, the whole tag line disappears and no stray spaces are added
before the following line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VnXP3D1srf5k8MrtPFUz93
This commit is contained in:
julienfastreandClaude Sonnet 5.5 committed 2026-11-20 15:55:22 +01:00
1 parent c699983b80
commit 1dc092f87f
1 file changed
+15 -23
+15 -23
View File
@@ -5,32 +5,29 @@ services:
image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_nginx_name }}:{{ chill.chill_image_tag }} image: {{ registry_url }}/{{ registry_project }}/{{ chill_image_nginx_name }}:{{ chill.chill_image_tag }}
links: links:
- app:php - app:php
{% if traefik_install %} {% if traefik_install %}
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.docker.network=traefik" - "traefik.docker.network=traefik"
- "traefik.http.routers.frontend-{{ chill.chill_environment }}.rule=Host(`{{ chill.host }}`)" - "traefik.http.routers.frontend-{{ chill.chill_environment }}.rule=Host(`{{ chill.host }}`)"
- "traefik.http.routers.frontend-{{ chill.chill_environment }}.entrypoints=websecure" - "traefik.http.routers.frontend-{{ chill.chill_environment }}.entrypoints=websecure"
{%+ if chill.tls_config == 'self_signed' +%} {% if chill.tls_config == 'self_signed' %}
- "traefik.http.routers.frontend-{{ chill.chill_environment }}.tls=true" - "traefik.http.routers.frontend-{{ chill.chill_environment }}.tls=true"
{%+ endif +%} {% endif %}
{%+ if chill.expose_port is not false +%} {% if chill.expose_port is not false %}
- "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.rule=PathPrefix(`/`)" - "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.rule=PathPrefix(`/`)"
- "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.entrypoints=chill{{ chill.chill_environment }}" - "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.entrypoints=chill{{ chill.chill_environment }}"
{%+ if chill.tls_config == 'self_signed' +%} {% if chill.tls_config == 'self_signed' %}
- "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.tls=true" - "traefik.http.routers.frontend-exp-{{ chill.chill_environment }}.tls=true"
{%+ endif +%}
{%+ endif +%}
{% endif %} {% endif %}
{% endif %}
{% if chill.expose_port is not false +%} {% endif %}
{% if chill.expose_port is not false %}
ports: ports:
- "{{ chill.expose_port }}:80" - "{{ chill.expose_port }}:80"
{%+ endif %} {% endif %}
networks: networks:
{% if traefik_install %} {% if traefik_install %}
- traefik - traefik
{% endif %} {% endif %}
@@ -50,20 +47,19 @@ services:
volumes: volumes:
- './config/prod:/var/www/app/config/packages/prod:ro' - './config/prod:/var/www/app/config/packages/prod:ro'
- '/var/log/chill:/var/www/app/var/log:rw' - '/var/log/chill:/var/www/app/var/log:rw'
{% if chill.load_template_override +%} {% if chill.load_template_override %}
- './templates:/var/www/app/templates:ro' - './templates:/var/www/app/templates:ro'
{%+ endif %} {% endif %}
- '{{ doc_storage_dir }}/{{ chill['chill_environment'] }}:/var/storage:rw' - '{{ doc_storage_dir }}/{{ chill['chill_environment'] }}:/var/storage:rw'
links: links:
- redis - redis
- relatorio - relatorio
{% if chill.rabbitmq_install +%} {% if chill.rabbitmq_install %}
- rabbitmq - rabbitmq
{%+ endif %} {% endif %}
{% if chill.add_postgres %}
{% if chill.add_postgres -%}
- database - database
{%- endif %} {% endif %}
networks: networks:
- default - default
@@ -99,7 +95,6 @@ services:
entrypoint: "/usr/bin/env" entrypoint: "/usr/bin/env"
command: ["bin/console", "chill:cron-job:execute", "-v"] command: ["bin/console", "chill:cron-job:execute", "-v"]
restart: "no" restart: "no"
{% if chill.add_postgres %} {% if chill.add_postgres %}
database: database:
@@ -111,7 +106,6 @@ services:
networks: networks:
- default - default
restart: always restart: always
{% endif %} {% endif %}
###> chill-project/chill-bundles ### ###> chill-project/chill-bundles ###
@@ -161,8 +155,7 @@ services:
# depends_on: # depends_on:
# rabbitmq: # rabbitmq:
# condition: service_healthy # condition: service_healthy
{% if chill.rabbitmq_install %}
{% if chill.rabbitmq_install +%}
rabbitmq: rabbitmq:
image: "{{ chill_image_rabbitmq }}" image: "{{ chill_image_rabbitmq }}"
env_file: env_file:
@@ -183,7 +176,6 @@ services:
{% endif %} {% endif %}
networks: networks:
{% if traefik_install %} {% if traefik_install %}
traefik: traefik:
external: true external: true