From b6ee7b9f98b2fd2eafb7f3220c4275f74431a052 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 14 Jul 2025 12:13:11 +0200 Subject: [PATCH] Optimized openldap network --- roles/docker-compose/templates/networks.yml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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