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: local ip address
Andras Bacsai87ab4bd71e90
diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.phpindex 313a828b7f..0dbbf6196e 100644--- a/app/Models/ServiceDatabase.php+++ b/app/Models/ServiceDatabase.php@@ -31,7 +31,11 @@ class ServiceDatabase extends BaseModelpublic function getServiceDatabaseUrl() {// $type = $this->databaseType();$port = $this->public_port;- $url = "{$this->service->server->ip}:{$port}";+ $realIp = $this->service->server->ip;+ if ($realIp === 'host.docker.internal' || isDev()) {+ $realIp = base_ip();+ }+ $url = "{$realIp}:{$port}";return $url;}public function service()