Add initial fragment support

This commit is contained in:
Corbin Bartsch 2023-10-28 11:47:39 -04:00 committed by Corbin Bartsch
parent e98f0e954e
commit 5eca1af323
Signed by: coredotbin
GPG Key ID: B03E030E4322E9D5

View File

@ -3,8 +3,12 @@
services:
{% for container in containers %}
{% if container.active %}
{{ container.service_name }}:
{{ container.service_name }}:{% if container.anchor is defined %} &{{ container.anchor }}{% endif %}
{% if container.fragment is defined %}
<<: *{{ container.fragment }}
{% else %}
image: {{ container.image }}
{% endif %}
container_name: {{ container.container_name | default(container.service_name) }}
{% if container.extra_hosts is defined %}
extra_hosts: