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(database): detect more postgres database image types

Andras Bacsaie049559e53ef
diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.php
index 5fdd52637f..003687272c 100644
--- a/app/Models/ServiceDatabase.php
+++ b/app/Models/ServiceDatabase.php
@@ -78,7 +78,7 @@ class ServiceDatabase extends BaseModel
public function databaseType()
{
$image = str($this->image)->before(':');
- if ($image->value() === 'postgres') {
+ if ($image->contains('postgres') || $image->contains('postgis')) {
$image = 'postgresql';
}