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
Andras Bacsai33ae10a6dcef
diff --git a/app/Actions/Database/StartPostgresql.php b/app/Actions/Database/StartPostgresql.phpindex adf0623f3a..ebfe61f823 100644--- a/app/Actions/Database/StartPostgresql.php+++ b/app/Actions/Database/StartPostgresql.php@@ -23,6 +23,9 @@ class StartPostgresql$this->database = $database;$container_name = $this->database->uuid;$this->configuration_dir = database_configuration_dir().'/'.$container_name;+ if (isDev()) {+ $this->configuration_dir = '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/databases/'.$container_name;+ }$this->commands = ["echo 'Starting database.'",@@ -78,7 +81,7 @@ class StartPostgresql],],];- if (! is_null($this->database->limits_cpuset)) {+ if (filled($this->database->limits_cpuset)) {data_set($docker_compose, "services.{$container_name}.cpuset", $this->database->limits_cpuset);}if ($this->database->destination->server->isLogDrainEnabled() && $this->database->isLogDrainEnabled()) {@@ -108,7 +111,7 @@ class StartPostgresql];}}- if (! is_null($this->database->postgres_conf) && ! empty($this->database->postgres_conf)) {+ if (filled($this->database->postgres_conf)) {$docker_compose['services'][$container_name]['volumes'][] = ['type' => 'bind','source' => $this->configuration_dir.'/custom-postgres.conf',@@ -201,7 +204,7 @@ class StartPostgresql{$this->commands[] = "rm -rf $this->configuration_dir/docker-entrypoint-initdb.d/*";- if (is_null($this->database->init_scripts) || count($this->database->init_scripts) === 0) {+ if (blank($this->database->init_scripts) || count($this->database->init_scripts) === 0) {return;}@@ -219,7 +222,7 @@ class StartPostgresql$filename = 'custom-postgres.conf';$config_file_path = "$this->configuration_dir/$filename";- if (is_null($this->database->postgres_conf) || empty($this->database->postgres_conf)) {+ if (blank($this->database->postgres_conf)) {$this->commands[] = "rm -f $config_file_path";return;