Remove duplicate hostnames with diabolical hack
This commit is contained in:
parent
fca03b471e
commit
2f27f298f9
|
@ -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 () {
|
||||
|
|
Reference in New Issue