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
Changes auto-committed by Conductor
Andras Bacsai587517394b05
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 41de17b059..dbb91aa24b 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -1632,7 +1632,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueuereturn;}if ($this->application->custom_healthcheck_found) {- $this->application_deployment_queue->addLogEntry('Custom healthcheck found, skipping default healthcheck.');+ $this->application_deployment_queue->addLogEntry('Custom healthcheck found in Dockerfile.');}if ($this->container_name) {$counter = 1;@@ -2358,16 +2358,22 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue];// Always use .env file$docker_compose['services'][$this->container_name]['env_file'] = ['.env'];- $docker_compose['services'][$this->container_name]['healthcheck'] = [- 'test' => [- 'CMD-SHELL',- $this->generate_healthcheck_commands(),- ],- 'interval' => $this->application->health_check_interval.'s',- 'timeout' => $this->application->health_check_timeout.'s',- 'retries' => $this->application->health_check_retries,- 'start_period' => $this->application->health_check_start_period.'s',- ];++ // Only add Coolify healthcheck if no custom HEALTHCHECK found in Dockerfile+ // If custom_healthcheck_found is true, the Dockerfile's HEALTHCHECK will be used+ // If healthcheck is disabled, no healthcheck will be added+ if (! $this->application->custom_healthcheck_found && ! $this->application->isHealthcheckDisabled()) {+ $docker_compose['services'][$this->container_name]['healthcheck'] = [+ 'test' => [+ 'CMD-SHELL',+ $this->generate_healthcheck_commands(),+ ],+ 'interval' => $this->application->health_check_interval.'s',+ 'timeout' => $this->application->health_check_timeout.'s',+ 'retries' => $this->application->health_check_retries,+ 'start_period' => $this->application->health_check_start_period.'s',+ ];+ }if (! is_null($this->application->limits_cpuset)) {data_set($docker_compose, 'services.'.$this->container_name.'.cpuset', $this->application->limits_cpuset);