mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-03-01 08:15:28 +08:00
caddy community container - allow to access host.docker.internal
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
6bc2d1d6ae
commit
2416b85f9d
1 changed files with 3 additions and 0 deletions
|
@ -566,6 +566,9 @@ class DockerActionManager
|
|||
}
|
||||
$mounts[] = ["Type" => "bind", "Source" => $volume->name, "Target" => $volume->mountPoint, "ReadOnly" => !$volume->isWritable, "BindOptions" => [ "Propagation" => "rshared"]];
|
||||
}
|
||||
// Special things for the caddy community container
|
||||
} elseif ($container->GetIdentifier() === 'nextcloud-aio-caddy') {
|
||||
$requestBody['HostConfig']['ExtraHosts'] = ['host.docker.internal:host-gateway'];
|
||||
}
|
||||
|
||||
if (count($mounts) > 0) {
|
||||
|
|
Loading…
Reference in a new issue