From f9aa1ed2a43e64795d42b19b7071c38375f1f6a3 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 13 Jul 2025 20:20:14 +0200 Subject: [PATCH] Solved docker network bug --- roles/docker-compose/templates/networks.yml.j2 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/roles/docker-compose/templates/networks.yml.j2 b/roles/docker-compose/templates/networks.yml.j2 index 96160c57..0cf0060f 100644 --- a/roles/docker-compose/templates/networks.yml.j2 +++ b/roles/docker-compose/templates/networks.yml.j2 @@ -5,12 +5,20 @@ networks: {{ applications[ 'svc-db-' ~ database_type ].network }}: external: true {% endif %} -{% if applications | get_app_conf(application_id, 'features.ldap', False) and applications['svc-db-openldap'].network.docker | bool %} +{% if + applications | get_app_conf(application_id, 'features.ldap', False) and + applications | get_app_conf(application_id, 'network.docker', False) + %} svc-db-openldap: external: true {% endif %} default: -{% if application_id in networks.local and networks.local[application_id].subnet is defined %} +{% if + application_id in networks.local and + networks.local[application_id].subnet is defined and + application_id != 'svc-db-openldap' +%} + name: {{ application_id }} driver: bridge ipam: driver: default