mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00: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"]];
|
$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) {
|
if (count($mounts) > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue