Migrate services part
This commit is contained in:
parent
7c59e4ae57
commit
73bce8f6e5
157 changed files with 3883 additions and 9 deletions
playbooks/templates
20
playbooks/templates/docker-compose.yml.j2
Normal file
20
playbooks/templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,20 @@
|
|||
{%- set compose_file = compose.file | default({}) -%}
|
||||
{%- set compose_file = compose_file_main | combine(compose_file, recursive=True) -%}
|
||||
|
||||
{%- if env is defined -%}
|
||||
{%- set compose_file = compose_file | combine(compose_file_env, recursive=True) -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if compose.network | default(True) -%}
|
||||
{%- set compose_file = compose_file | combine(compose_file_networks, recursive=True) -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if compose.volumes | default(False) -%}
|
||||
{%- set compose_file = compose_file | combine(compose_file_volumes, recursive=True) -%}
|
||||
{%- endif -%}
|
||||
|
||||
{%- if compose.monitoring | default(False) -%}
|
||||
{%- set compose_file = compose_file | combine(compose_file_monitoring_label, recursive=True) -%}
|
||||
{%- endif -%}
|
||||
|
||||
{{ compose_file | to_nice_yaml }}
|
Loading…
Add table
Add a link
Reference in a new issue