Skip to content

Commit

Permalink
caddy community container - allow to access host.docker.internal
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Mar 4, 2024
1 parent 6bc2d1d commit 2416b85
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 @@ -566,6 +566,9 @@ public function CreateContainer(Container $container) : void {
}
$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) {
Expand Down

0 comments on commit 2416b85

Please sign in to comment.