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: custom docker compose commands, add project dir if needed
Andras Bacsai8af509992dfc
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 6b06a2508d..d5e60412ac 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -347,9 +347,15 @@ class ApplicationDeploymentJob implements ShouldQueue, ShouldBeEncrypted}if (data_get($this->application, 'docker_compose_custom_start_command')) {$this->docker_compose_custom_start_command = $this->application->docker_compose_custom_start_command;+ if (!str($this->docker_compose_custom_start_command)->contains('--project-directory')) {+ $this->docker_compose_custom_start_command = str($this->docker_compose_custom_start_command)->replaceFirst('compose', 'compose --project-directory ' . $this->workdir)->value();+ }}if (data_get($this->application, 'docker_compose_custom_build_command')) {$this->docker_compose_custom_build_command = $this->application->docker_compose_custom_build_command;+ if (!str($this->docker_compose_custom_build_command)->contains('--project-directory')) {+ $this->docker_compose_custom_build_command = str($this->docker_compose_custom_build_command)->replaceFirst('compose', 'compose --project-directory ' . $this->workdir)->value();+ }}if ($this->pull_request_id === 0) {$this->application_deployment_queue->addLogEntry("Starting deployment of {$this->application->name} to {$this->server->name}.");