add ulimit for the talk container due to a bug in libwebsockets

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-01-04 15:57:54 +01:00
parent 480b3193d4
commit b189e7b773

View file

@ -423,6 +423,10 @@ class DockerActionManager
if(count($mounts) > 0) { if(count($mounts) > 0) {
$requestBody['HostConfig']['Mounts'] = $mounts; $requestBody['HostConfig']['Mounts'] = $mounts;
} }
// Special things for the talk container which should not be exposed in the containers.json
} elseif ($container->GetIdentifier() === 'nextcloud-aio-talk') {
// This is needed due to a bug in libwebsockets which cannot handle unlimited ulimits
$requestBody['HostConfig']['Ulimits'] = [["Name" => "nofile", "Hard" => 200000, "Soft" => 200000]];
} }
$url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier()); $url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier());