From fdfe9dee785eb2abc25b211eadba55c71d72351e Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 5 Jan 2024 21:05:52 +0100 Subject: [PATCH] Solved default network bug --- roles/docker-mailu/templates/docker-compose.yml.j2 | 4 ---- templates/docker-container-networks.yml.j2 | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/roles/docker-mailu/templates/docker-compose.yml.j2 b/roles/docker-mailu/templates/docker-compose.yml.j2 index a50b5aa4..0cf837d2 100644 --- a/roles/docker-mailu/templates/docker-compose.yml.j2 +++ b/roles/docker-mailu/templates/docker-compose.yml.j2 @@ -12,7 +12,6 @@ services: env_file: mailu.env restart: always {% include 'templates/docker-container-networks.yml.j2' %} - default: ipv4_address: 192.168.203.254 logging: driver: journald @@ -39,7 +38,6 @@ services: resolver: condition: service_started {% include 'templates/docker-container-networks.yml.j2' %} - default: webmail: radicale: dns: @@ -124,7 +122,6 @@ services: logging: driver: journald {% include 'templates/docker-container-networks.yml.j2' %} - default: noinet: @@ -204,7 +201,6 @@ services: redis: {% include 'templates/docker-compose-networks.yml.j2' %} - default: driver: bridge ipam: driver: default diff --git a/templates/docker-container-networks.yml.j2 b/templates/docker-container-networks.yml.j2 index ab6c94cf..dd8ff2a2 100644 --- a/templates/docker-container-networks.yml.j2 +++ b/templates/docker-container-networks.yml.j2 @@ -1,7 +1,7 @@ # This template needs to be included in docker-compose.yml containers networks: - default: {% if enable_central_database | bool %} central_{{ database_type }}: {% endif %} + default: {{ "\n" }} \ No newline at end of file