This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/_ansible/templates/docker-compose.yml.j2

25 lines
917 B
Text
Raw Normal View History

2023-06-16 11:15:45 +00:00
{%- set compose_file = compose.file | default({}) -%}
{%- set compose_file = compose_file_main | combine(compose_file, recursive=True) -%}
2023-12-11 00:42:57 +00:00
{%- if compose.depends_on | default(False) -%}
{%- set compose_file = compose_file | combine(compose_file_depends_on, recursive=True) -%}
{%- endif -%}
2023-06-16 11:15:45 +00:00
{%- 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 -%}
2023-12-09 15:20:45 +00:00
{%- if compose.user | default(False) -%}
{%- set compose_file = compose_file | combine(compose_file_user, recursive=True) -%}
{%- endif -%}
2023-06-16 11:15:45 +00:00
{%- if compose.volumes | default(False) -%}
{%- set compose_file = compose_file | combine(compose_file_volumes, recursive=True) -%}
{%- endif -%}
2023-06-13 18:48:16 +00:00
{{ compose_file | to_nice_yaml }}