diff --git a/roles/docker-compose/templates/networks.yml.j2 b/roles/docker-compose/templates/networks.yml.j2 index d4a8b811..bf8aa09b 100644 --- a/roles/docker-compose/templates/networks.yml.j2 +++ b/roles/docker-compose/templates/networks.yml.j2 @@ -11,12 +11,11 @@ networks: %} svc-db-openldap: external: true -{% endif %} +{% else %} default: {% if application_id in networks.local and - networks.local[application_id].subnet is defined and - application_id != 'svc-db-openldap' + networks.local[application_id].subnet is defined %} name: {{ application_id }} driver: bridge @@ -25,4 +24,5 @@ networks: config: - subnet: {{networks.local[application_id].subnet}} {% endif %} +{% endif %} {{ "\n" }} \ No newline at end of file