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(database): Improve database type detection for Supabase Postgres images
Andras Bacsaic3d77e31b2d6
diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.phpindex 003687272c..c2a0df8cdf 100644--- a/app/Models/ServiceDatabase.php+++ b/app/Models/ServiceDatabase.php@@ -78,11 +78,15 @@ class ServiceDatabase extends BaseModelpublic function databaseType(){$image = str($this->image)->before(':');- if ($image->contains('postgres') || $image->contains('postgis')) {- $image = 'postgresql';+ if ($image->contains('supabase/postgres')) {+ $finalImage = 'supabase/postgres';+ } elseif ($image->contains('postgres') || $image->contains('postgis')) {+ $finalImage = 'postgresql';+ } else {+ $finalImage = $image;}- return "standalone-$image";+ return "standalone-$finalImage";}public function getServiceDatabaseUrl()