From 2f27f298f95a48df284b1a4f4bcd2b6240f433cd Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 21 May 2021 20:58:41 +0200 Subject: [PATCH] Remove duplicate hostnames with diabolical hack --- entrypoint.core.sh.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.core.sh.tmpl b/entrypoint.core.sh.tmpl index e34dd6a..e4fe3d1 100644 --- a/entrypoint.core.sh.tmpl +++ b/entrypoint.core.sh.tmpl @@ -34,6 +34,11 @@ file_env "MAILMAN_REST_PASSWORD" export DATABASE_URL="postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}/${DATABASE_NAME}" +# Diabolical hack to remove duplicate hostnames due to Docker shared networks +# See https://git.autonomic.zone/coop-cloud/mailu/src/branch/main/compose.yml for more +sed "/192.168/d" /etc/hosts > /etc/hosts-single-hostname +cat /etc/hosts-single-hostname > /etc/hosts + # --- upstream entrypoint below --- function wait_for_postgres () {