fix(ServerCheck): enhance proxy container check to ensure it is running before proceeding

This commit is contained in:
Andras Bacsai
2025-04-30 09:59:19 +02:00
parent e516aeb534
commit eaba726b9c

View File

@@ -99,7 +99,8 @@ class ServerCheck
return data_get($value, 'Name') === '/coolify-proxy';
}
})->first();
if (! $foundProxyContainer) {
$proxyStatus = data_get($foundProxyContainer, 'State.Status');
if (! $foundProxyContainer || $proxyStatus !== 'running') {
try {
$shouldStart = CheckProxy::run($this->server);
if ($shouldStart) {