Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

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

Andras Bacsaieaba726b9c76
diff --git a/app/Actions/Server/ServerCheck.php b/app/Actions/Server/ServerCheck.php
index 75b8501f32..f00551684c 100644
--- a/app/Actions/Server/ServerCheck.php
+++ b/app/Actions/Server/ServerCheck.php
@@ -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) {