mastercontainer needs to be connected before starting any other container

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-05-04 14:52:09 +02:00
parent 93cec3ca5b
commit 8750bd343c

View file

@ -77,8 +77,8 @@ $app->get('/containers', function (Request $request, Response $response, array $
$dockerActionManger = $container->get(\AIO\Docker\DockerActionManager::class); $dockerActionManger = $container->get(\AIO\Docker\DockerActionManager::class);
/** @var \AIO\Controller\DockerController $dockerController */ /** @var \AIO\Controller\DockerController $dockerController */
$dockerController = $container->get(\AIO\Controller\DockerController::class); $dockerController = $container->get(\AIO\Controller\DockerController::class);
$dockerController->StartDomaincheckContainer();
$dockerActionManger->ConnectMasterContainerToNetwork(); $dockerActionManger->ConnectMasterContainerToNetwork();
$dockerController->StartDomaincheckContainer();
return $view->render($response, 'containers.twig', [ return $view->render($response, 'containers.twig', [
'domain' => $configurationManager->GetDomain(), 'domain' => $configurationManager->GetDomain(),
'apache_port' => $configurationManager->GetApachePort(), 'apache_port' => $configurationManager->GetApachePort(),