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: if volumes + file mounts are defined, should merge them together in the compose file
Andras Bacsai06013e77e413
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 0163ae013c..437bd57f5d 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1724,13 +1724,17 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueueif (count($this->application->ports_mappings_array) > 0 && $this->pull_request_id === 0) {$docker_compose['services'][$this->container_name]['ports'] = $this->application->ports_mappings_array;}+ if (! data_get($docker_compose, 'services.'.$this->container_name.'.volumes')) {+ $docker_compose['services'][$this->container_name]['volumes'] = [];+ }+if (count($persistent_storages) > 0) {- $docker_compose['services'][$this->container_name]['volumes'] = $persistent_storages;+ $docker_compose['services'][$this->container_name]['volumes'] = array_merge($docker_compose['services'][$this->container_name]['volumes'], $persistent_storages);}if (count($persistent_file_volumes) > 0) {- $docker_compose['services'][$this->container_name]['volumes'] = $persistent_file_volumes->map(function ($item) {+ $docker_compose['services'][$this->container_name]['volumes'] = array_merge($docker_compose['services'][$this->container_name]['volumes'], $persistent_file_volumes->map(function ($item) {return "$item->fs_path:$item->mount_path";- })->toArray();+ })->toArray());}if (count($volume_names) > 0) {$docker_compose['volumes'] = $volume_names;