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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: remove network if it is only connected to coolify proxy itself
Andras Bacsai012d660886c3
diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.phpindex f397d88618..754b95e6b5 100644--- a/app/Console/Commands/Init.php+++ b/app/Console/Commands/Init.php@@ -104,6 +104,15 @@ class Init extends Commandif (empty($out)) {$commands->push("docker network disconnect $network coolify-proxy >/dev/null 2>&1 || true");$commands->push("docker network rm $network >/dev/null 2>&1 || true");+ } else {+ $data = collect(json_decode($out, true));+ if ($data->count() === 1) {+ $isCoolifyProxyItself = data_get($data->first(), 'Name') === 'coolify-proxy';+ if ($isCoolifyProxyItself) {+ $commands->push("docker network disconnect $network coolify-proxy >/dev/null 2>&1 || true");+ $commands->push("docker network rm $network >/dev/null 2>&1 || true");+ }+ }}}if ($commands->isNotEmpty()) {