fix(ServerCheck): set default proxy status to 'exited' to handle missing container state

This commit is contained in:
Andras Bacsai
2025-04-30 16:50:23 +02:00
parent fe24296de7
commit 4c5dd3db3c

View File

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