From 1937fde61deff405f47d9b92b740a3fde0e571d2 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 26 Oct 2023 12:09:57 +0200 Subject: [PATCH] add AIO_DATABASE_HOST Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then) Signed-off-by: Simon L --- php/src/Docker/DockerActionManager.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index d9942fbe..b4a092c9 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -403,6 +403,9 @@ class DockerActionManager } else { $replacements[1] = ''; } + // Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then) + } elseif ($out[1] === 'AIO_DATABASE_HOST') { + $replacements[1] = gethostbyname('nextcloud-aio-database'); } else { $secret = $this->configurationManager->GetSecret($out[1]); if ($secret === "") {