16 lines
615 B
Django/Jinja
16 lines
615 B
Django/Jinja
{%- set compose_file = compose.file | default({}) -%}
|
|
{%- set compose_file = compose_file_main | combine(compose_file, recursive=True) -%}
|
|
|
|
{%- if compose.env | default(False) -%}
|
|
{%- set compose_file = compose_file | combine(compose_file_env, recursive=True) -%}
|
|
{%- endif -%}
|
|
|
|
{%- if compose.ports | default(False) -%}
|
|
{%- set compose_file = compose_file | combine(compose_file_ports, recursive=True) -%}
|
|
{%- endif -%}
|
|
|
|
{%- if compose.volumes | default(False) -%}
|
|
{%- set compose_file = compose_file | combine(compose_file_volumes, recursive=True) -%}
|
|
{%- endif -%}
|
|
|
|
{{ compose_file | to_nice_yaml }}
|