diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 6bb89c5..e2156c6 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -3,8 +3,8 @@ services: {% for container in containers %} {% if container.active %} - {{ container.service_name }}:{% if container.anchor is defined %} &{{ container.anchor }} -{% endif %} + {{ container.service_name }}:{% if container.anchor is defined %} &{{ container.anchor }}{% endif %} + {% if container.fragment is defined %} <<: *{{ container.fragment }} {% else %}