Skip to content

Commit

Permalink
Merge pull request #3611 from nextcloud/enh/noid/database-host
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen authored Oct 30, 2023
2 parents 736c40c + 1937fde commit 1aa518d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions php/src/Docker/DockerActionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ public function CreateContainer(Container $container) : void {
} 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 === "") {
Expand Down

0 comments on commit 1aa518d

Please sign in to comment.