mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-10-05 13:04:32 +08:00
Merge pull request #4326 from nextcloud/enh/4267/caddy-host-network
caddy community container - allow to access host.docker.internal
This commit is contained in:
commit
cc6486ae2f
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…
Add table
Reference in a new issue