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 Bacsai319c3023dcf4
diff --git a/app/Actions/Docker/GetContainersStatus.php b/app/Actions/Docker/GetContainersStatus.phpindex e9f577e06f..706356930b 100644--- a/app/Actions/Docker/GetContainersStatus.php+++ b/app/Actions/Docker/GetContainersStatus.php@@ -260,7 +260,7 @@ class GetContainersStatus$environmentName = data_get($service, 'environment.name');if ($projectUuid && $serviceUuid && $environmentName) {- $url = base_url() . '/project/' . $projectUuid . '/' . $environmentName . '/service/' . $serviceUuid;+ $url = base_url().'/project/'.$projectUuid.'/'.$environmentName.'/service/'.$serviceUuid;} else {$url = null;}@@ -286,7 +286,7 @@ class GetContainersStatus$environment = data_get($application, 'environment.name');if ($projectUuid && $applicationUuid && $environment) {- $url = base_url() . '/project/' . $projectUuid . '/' . $environment . '/application/' . $applicationUuid;+ $url = base_url().'/project/'.$projectUuid.'/'.$environment.'/application/'.$applicationUuid;} else {$url = null;}@@ -311,7 +311,7 @@ class GetContainersStatus$applicationUuid = data_get($preview, 'application.uuid');if ($projectUuid && $applicationUuid && $environmentName) {- $url = base_url() . '/project/' . $projectUuid . '/' . $environmentName . '/application/' . $applicationUuid;+ $url = base_url().'/project/'.$projectUuid.'/'.$environmentName.'/application/'.$applicationUuid;} else {$url = null;}@@ -336,7 +336,7 @@ class GetContainersStatus$databaseUuid = data_get($database, 'uuid');if ($projectUuid && $databaseUuid && $environmentName) {- $url = base_url() . '/project/' . $projectUuid . '/' . $environmentName . '/database/' . $databaseUuid;+ $url = base_url().'/project/'.$projectUuid.'/'.$environmentName.'/database/'.$databaseUuid;} else {$url = null;}diff --git a/app/Actions/Server/ServerCheck.php b/app/Actions/Server/ServerCheck.phpindex 35b4996b43..75b8501f32 100644--- a/app/Actions/Server/ServerCheck.php+++ b/app/Actions/Server/ServerCheck.php@@ -213,7 +213,7 @@ class ServerCheckif ($isPublic) {$foundTcpProxy = $this->containers->filter(function ($value, $key) use ($uuid) {if ($this->isSentinel) {- return data_get($value, 'name') === $uuid . '-proxy';+ return data_get($value, 'name') === $uuid.'-proxy';} else {if ($this->server->isSwarm()) {@@ -245,7 +245,7 @@ class ServerCheckif ($isPublic) {$foundTcpProxy = $this->containers->filter(function ($value, $key) use ($uuid) {if ($this->isSentinel) {- return data_get($value, 'name') === $uuid . '-proxy';+ return data_get($value, 'name') === $uuid.'-proxy';} else {if ($this->server->isSwarm()) {return data_get($value, 'Spec.Name') === "coolify-proxy_$uuid";diff --git a/app/Http/Controllers/Api/ServicesController.php b/app/Http/Controllers/Api/ServicesController.phpindex abf8a24af4..bf90322e22 100644--- a/app/Http/Controllers/Api/ServicesController.php+++ b/app/Http/Controllers/Api/ServicesController.php@@ -308,7 +308,7 @@ class ServicesController extends Controller}if ($oneClickService) {$service_payload = [- 'name' => "$oneClickServiceName-" . str()->random(10),+ 'name' => "$oneClickServiceName-".str()->random(10),'docker_compose_raw' => base64_decode($oneClickService),'environment_id' => $environment->id,'service_type' => $oneClickServiceName,@@ -320,7 +320,7 @@ class ServicesController extends Controllerdata_set($service_payload, 'connect_to_docker_network', true);}$service = Service::create($service_payload);- $service->name = "$oneClickServiceName-" . $service->uuid;+ $service->name = "$oneClickServiceName-".$service->uuid;$service->save();if ($oneClickDotEnvs?->count() > 0) {$oneClickDotEnvs->each(function ($value) use ($service) {diff --git a/app/Jobs/PushServerUpdateJob.php b/app/Jobs/PushServerUpdateJob.phpindex fa146ff963..e9fcb2f37c 100644--- a/app/Jobs/PushServerUpdateJob.php+++ b/app/Jobs/PushServerUpdateJob.php@@ -280,7 +280,7 @@ class PushServerUpdateJob implements ShouldBeEncrypted, ShouldQueue})->first();if (! $tcpProxyContainerFound) {StartDatabaseProxy::dispatch($database);- $this->server->team?->notify(new ContainerRestarted("TCP Proxy for database", $this->server));+ $this->server->team?->notify(new ContainerRestarted('TCP Proxy for database', $this->server));} else {}}diff --git a/app/Models/BaseModel.php b/app/Models/BaseModel.phpindex 500c34fb68..79801987b3 100644--- a/app/Models/BaseModel.php+++ b/app/Models/BaseModel.php@@ -19,16 +19,18 @@ abstract class BaseModel extends Model}});}+public function name(): Attribute{return new Attribute(- get: fn() => sanitize_string($this->getRawOriginal('name')),+ get: fn () => sanitize_string($this->getRawOriginal('name')),);}+public function image(): Attribute{return new Attribute(- get: fn() => sanitize_string($this->getRawOriginal('image')),+ get: fn () => sanitize_string($this->getRawOriginal('image')),);}}diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.phpindex 99cc8a55bb..4a457a6cf9 100644--- a/app/Models/StandalonePostgresql.php+++ b/app/Models/StandalonePostgresql.php@@ -25,7 +25,7 @@ class StandalonePostgresql extends BaseModel{static::created(function ($database) {LocalPersistentVolume::create([- 'name' => 'postgres-data-' . $database->uuid,+ 'name' => 'postgres-data-'.$database->uuid,'mount_path' => '/var/lib/postgresql/data','host_path' => null,'resource_id' => $database->id,@@ -48,7 +48,7 @@ class StandalonePostgresql extends BaseModelpublic function workdir(){- return database_configuration_dir() . "/{$this->uuid}";+ return database_configuration_dir()."/{$this->uuid}";}protected function serverStatus(): Attribute@@ -65,7 +65,7 @@ class StandalonePostgresql extends BaseModel$server = data_get($this, 'destination.server');$workdir = $this->workdir();if (str($workdir)->endsWith($this->uuid)) {- instant_remote_process(['rm -rf ' . $this->workdir()], $server, false);+ instant_remote_process(['rm -rf '.$this->workdir()], $server, false);}}@@ -82,7 +82,7 @@ class StandalonePostgresql extends BaseModelpublic function isConfigurationChanged(bool $save = false){- $newConfigHash = $this->image . $this->ports_mappings . $this->postgres_initdb_args . $this->postgres_host_auth_method;+ $newConfigHash = $this->image.$this->ports_mappings.$this->postgres_initdb_args.$this->postgres_host_auth_method;$newConfigHash .= json_encode($this->environment_variables()->get('value')->sort());$newConfigHash = md5($newConfigHash);$oldConfigHash = data_get($this, 'config_hash');@@ -186,14 +186,14 @@ class StandalonePostgresql extends BaseModelpublic function portsMappings(): Attribute{return Attribute::make(- set: fn($value) => $value === '' ? null : $value,+ set: fn ($value) => $value === '' ? null : $value,);}public function portsMappingsArray(): Attribute{return Attribute::make(- get: fn() => is_null($this->ports_mappings)+ get: fn () => is_null($this->ports_mappings)? []: explode(',', $this->ports_mappings),@@ -208,7 +208,7 @@ class StandalonePostgresql extends BaseModelpublic function databaseType(): Attribute{return new Attribute(- get: fn() => $this->type(),+ get: fn () => $this->type(),);}@@ -220,7 +220,7 @@ class StandalonePostgresql extends BaseModelprotected function internalDbUrl(): Attribute{return new Attribute(- get: fn() => "postgres://{$this->postgres_user}:{$this->postgres_password}@{$this->uuid}:5432/{$this->postgres_db}",+ get: fn () => "postgres://{$this->postgres_user}:{$this->postgres_password}@{$this->uuid}:5432/{$this->postgres_db}",);}diff --git a/app/Models/Team.php b/app/Models/Team.phpindex 76d89fb8e9..6ba044349f 100644--- a/app/Models/Team.php+++ b/app/Models/Team.php@@ -130,7 +130,7 @@ class Team extends Model implements SendsDiscord, SendsEmailpublic function name(): Attribute{return new Attribute(- get: fn() => sanitize_string($this->getRawOriginal('name')),+ get: fn () => sanitize_string($this->getRawOriginal('name')),);}diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex ddc578400a..d64b5ab6e9 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -67,27 +67,27 @@ function base_configuration_dir(): string}function application_configuration_dir(): string{- return base_configuration_dir() . '/applications';+ return base_configuration_dir().'/applications';}function service_configuration_dir(): string{- return base_configuration_dir() . '/services';+ return base_configuration_dir().'/services';}function database_configuration_dir(): string{- return base_configuration_dir() . '/databases';+ return base_configuration_dir().'/databases';}function database_proxy_dir($uuid): string{- return base_configuration_dir() . "/databases/$uuid/proxy";+ return base_configuration_dir()."/databases/$uuid/proxy";}function backup_dir(): string{- return base_configuration_dir() . '/backups';+ return base_configuration_dir().'/backups';}function metrics_dir(): string{- return base_configuration_dir() . '/metrics';+ return base_configuration_dir().'/metrics';}function sanitize_string(string $input): string@@ -142,8 +142,8 @@ function refreshSession(?Team $team = null): void$team = User::find(Auth::id())->teams->first();}}- Cache::forget('team:' . Auth::id());- Cache::remember('team:' . Auth::id(), 3600, function () use ($team) {+ Cache::forget('team:'.Auth::id());+ Cache::remember('team:'.Auth::id(), 3600, function () use ($team) {return $team;});session(['currentTeam' => $team]);@@ -175,7 +175,7 @@ function handleError(?Throwable $error = null, ?Livewire\Component $livewire = n$message = null;}if ($customErrorMessage) {- $message = $customErrorMessage . ' ' . $message;+ $message = $customErrorMessage.' '.$message;}if (isset($livewire)) {@@ -430,7 +430,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = nullMail::send([],[],- fn(Message $message) => $message+ fn (Message $message) => $message->to($email)->replyTo($email)->cc($cc)@@ -441,7 +441,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = nullMail::send([],[],- fn(Message $message) => $message+ fn (Message $message) => $message->to($email)->subject($mail->subject)->html((string) $mail->render())@@ -677,19 +677,19 @@ function queryResourcesByUuid(string $uuid)function generateTagDeployWebhook($tag_name){$baseUrl = base_url();- $api = Url::fromString($baseUrl) . '/api/v1';+ $api = Url::fromString($baseUrl).'/api/v1';$endpoint = "/deploy?tag=$tag_name";- return $api . $endpoint;+ return $api.$endpoint;}function generateDeployWebhook($resource){$baseUrl = base_url();- $api = Url::fromString($baseUrl) . '/api/v1';+ $api = Url::fromString($baseUrl).'/api/v1';$endpoint = '/deploy';$uuid = data_get($resource, 'uuid');- return $api . $endpoint . "?uuid=$uuid&force=false";+ return $api.$endpoint."?uuid=$uuid&force=false";}function generateGitManualWebhook($resource, $type){@@ -699,7 +699,7 @@ function generateGitManualWebhook($resource, $type)if ($resource->getMorphClass() === \App\Models\Application::class) {$baseUrl = base_url();- return Url::fromString($baseUrl) . "/webhooks/source/$type/events/manual";+ return Url::fromString($baseUrl)."/webhooks/source/$type/events/manual";}return null;@@ -1067,7 +1067,7 @@ function validate_dns_entry(string $fqdn, Server $server)$query = new DNSQuery($dns_server);$results = $query->query($host, $type);if ($results === false || $query->hasError()) {- ray('Error: ' . $query->getLasterror());+ ray('Error: '.$query->getLasterror());} else {foreach ($results as $result) {if ($result->getType() == $type) {@@ -1077,7 +1077,7 @@ function validate_dns_entry(string $fqdn, Server $server)break;}if ($result->getData() === $ip) {- ray($host . ' has IP address ' . $result->getData());+ ray($host.' has IP address '.$result->getData());ray($result->getString());$found_matching_ip = true;break;@@ -1125,15 +1125,15 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId =$applications = Application::ownedByCurrentTeamAPI($teamId)->get(['fqdn', 'uuid']);$serviceApplications = ServiceApplication::ownedByCurrentTeamAPI($teamId)->get(['fqdn', 'uuid']);if ($uuid) {- $applications = $applications->filter(fn($app) => $app->uuid !== $uuid);- $serviceApplications = $serviceApplications->filter(fn($app) => $app->uuid !== $uuid);+ $applications = $applications->filter(fn ($app) => $app->uuid !== $uuid);+ $serviceApplications = $serviceApplications->filter(fn ($app) => $app->uuid !== $uuid);}$domainFound = false;foreach ($applications as $app) {if (is_null($app->fqdn)) {continue;}- $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== '');+ $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');foreach ($list_of_domains as $domain) {if (str($domain)->endsWith('/')) {$domain = str($domain)->beforeLast('/');@@ -1152,7 +1152,7 @@ function checkIfDomainIsAlreadyUsed(Collection|array $domains, ?string $teamId =if (str($app->fqdn)->isEmpty()) {continue;}- $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== '');+ $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');foreach ($list_of_domains as $domain) {if (str($domain)->endsWith('/')) {$domain = str($domain)->beforeLast('/');@@ -1202,7 +1202,7 @@ function check_domain_usage(ServiceApplication|Application|null $resource = null});$apps = Application::all();foreach ($apps as $app) {- $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== '');+ $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');foreach ($list_of_domains as $domain) {if (str($domain)->endsWith('/')) {$domain = str($domain)->beforeLast('/');@@ -1221,7 +1221,7 @@ function check_domain_usage(ServiceApplication|Application|null $resource = null}$apps = ServiceApplication::all();foreach ($apps as $app) {- $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn($fqdn) => $fqdn !== '');+ $list_of_domains = collect(explode(',', $app->fqdn))->filter(fn ($fqdn) => $fqdn !== '');foreach ($list_of_domains as $domain) {if (str($domain)->endsWith('/')) {$domain = str($domain)->beforeLast('/');@@ -1278,7 +1278,7 @@ function parseCommandsByLineForSudo(Collection $commands, Server $server): array$commands = $commands->map(function ($line) use ($server) {if (Str::startsWith($line, 'sudo mkdir -p')) {- return "$line && sudo chown -R $server->user:$server->user " . Str::after($line, 'sudo mkdir -p') . ' && sudo chmod -R o-rwx ' . Str::after($line, 'sudo mkdir -p');+ return "$line && sudo chown -R $server->user:$server->user ".Str::after($line, 'sudo mkdir -p').' && sudo chmod -R o-rwx '.Str::after($line, 'sudo mkdir -p');}return $line;@@ -1310,7 +1310,7 @@ function parseLineForSudo(string $command, Server $server): string$command = "sudo $command";}if (Str::startsWith($command, 'sudo mkdir -p')) {- $command = "$command && sudo chown -R $server->user:$server->user " . Str::after($command, 'sudo mkdir -p') . ' && sudo chmod -R o-rwx ' . Str::after($command, 'sudo mkdir -p');+ $command = "$command && sudo chown -R $server->user:$server->user ".Str::after($command, 'sudo mkdir -p').' && sudo chmod -R o-rwx '.Str::after($command, 'sudo mkdir -p');}if (str($command)->contains('$(') || str($command)->contains('`')) {$command = str($command)->replace('$(', '$(sudo ')->replace('`', '`sudo ')->value();@@ -1447,9 +1447,9 @@ function parseServiceVolumes($serviceVolumes, $resource, $topLevelVolumes, $pullreturn $volume;}if (get_class($resource) === \App\Models\Application::class) {- $dir = base_configuration_dir() . '/applications/' . $resource->uuid;+ $dir = base_configuration_dir().'/applications/'.$resource->uuid;} else {- $dir = base_configuration_dir() . '/services/' . $resource->service->uuid;+ $dir = base_configuration_dir().'/services/'.$resource->service->uuid;}if ($source->startsWith('.')) {@@ -1459,7 +1459,7 @@ function parseServiceVolumes($serviceVolumes, $resource, $topLevelVolumes, $pull$source = $source->replaceFirst('~', $dir);}if ($pull_request_id !== 0) {- $source = $source . "-pr-$pull_request_id";+ $source = $source."-pr-$pull_request_id";}if (! $resource?->settings?->is_preserve_repository_enabled || $foundConfig?->is_based_on_git) {LocalFileVolume::updateOrCreate(@@ -1917,7 +1917,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (! $isDatabase) {if ($savedService->fqdn) {- data_set($savedService, 'fqdn', $savedService->fqdn . ',' . $fqdn);+ data_set($savedService, 'fqdn', $savedService->fqdn.','.$fqdn);} else {data_set($savedService, 'fqdn', $fqdn);}@@ -1977,7 +1977,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (Str::lower($forService) === $serviceName) {$fqdn = generateFqdn($resource->server, $containerName);} else {- $fqdn = generateFqdn($resource->server, Str::lower($forService) . '-' . $resource->uuid);+ $fqdn = generateFqdn($resource->server, Str::lower($forService).'-'.$resource->uuid);}if ($port) {$fqdn = "$fqdn:$port";@@ -2319,7 +2319,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $volume->before(':');$mount = $volume->after(':');if ($name->startsWith('.') || $name->startsWith('~')) {- $dir = base_configuration_dir() . '/applications/' . $resource->uuid;+ $dir = base_configuration_dir().'/applications/'.$resource->uuid;if ($name->startsWith('.')) {$name = $name->replaceFirst('.', $dir);}@@ -2327,12 +2327,12 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $name->replaceFirst('~', $dir);}if ($pull_request_id !== 0) {- $name = $name . "-pr-$pull_request_id";+ $name = $name."-pr-$pull_request_id";}$volume = str("$name:$mount");} else {if ($pull_request_id !== 0) {- $name = $name . "-pr-$pull_request_id";+ $name = $name."-pr-$pull_request_id";$volume = str("$name:$mount");if ($topLevelVolumes->has($name)) {$v = $topLevelVolumes->get($name);@@ -2371,7 +2371,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $volume->before(':');$mount = $volume->after(':');if ($pull_request_id !== 0) {- $name = $name . "-pr-$pull_request_id";+ $name = $name."-pr-$pull_request_id";}$volume = str("$name:$mount");}@@ -2382,7 +2382,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$read_only = data_get($volume, 'read_only');if ($source && $target) {if ((str($source)->startsWith('.') || str($source)->startsWith('~'))) {- $dir = base_configuration_dir() . '/applications/' . $resource->uuid;+ $dir = base_configuration_dir().'/applications/'.$resource->uuid;if (str($source, '.')) {$source = str($source)->replaceFirst('.', $dir);}@@ -2390,21 +2390,21 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$source = str($source)->replaceFirst('~', $dir);}if ($pull_request_id !== 0) {- $source = $source . "-pr-$pull_request_id";+ $source = $source."-pr-$pull_request_id";}if ($read_only) {- data_set($volume, 'source', $source . ':' . $target . ':ro');+ data_set($volume, 'source', $source.':'.$target.':ro');} else {- data_set($volume, 'source', $source . ':' . $target);+ data_set($volume, 'source', $source.':'.$target);}} else {if ($pull_request_id !== 0) {- $source = $source . "-pr-$pull_request_id";+ $source = $source."-pr-$pull_request_id";}if ($read_only) {- data_set($volume, 'source', $source . ':' . $target . ':ro');+ data_set($volume, 'source', $source.':'.$target.':ro');} else {- data_set($volume, 'source', $source . ':' . $target);+ data_set($volume, 'source', $source.':'.$target);}if (! str($source)->startsWith('/')) {if ($topLevelVolumes->has($source)) {@@ -2443,7 +2443,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $volume->before(':');$mount = $volume->after(':');if ($name->startsWith('.') || $name->startsWith('~')) {- $dir = base_configuration_dir() . '/applications/' . $resource->uuid;+ $dir = base_configuration_dir().'/applications/'.$resource->uuid;if ($name->startsWith('.')) {$name = $name->replaceFirst('.', $dir);}@@ -2451,13 +2451,13 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $name->replaceFirst('~', $dir);}if ($pull_request_id !== 0) {- $name = $name . "-pr-$pull_request_id";+ $name = $name."-pr-$pull_request_id";}$volume = str("$name:$mount");} else {if ($pull_request_id !== 0) {$uuid = $resource->uuid;- $name = $uuid . "-$name-pr-$pull_request_id";+ $name = $uuid."-$name-pr-$pull_request_id";$volume = str("$name:$mount");if ($topLevelVolumes->has($name)) {$v = $topLevelVolumes->get($name);@@ -2476,7 +2476,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal}} else {$uuid = $resource->uuid;- $name = str($uuid . "-$name");+ $name = str($uuid."-$name");$volume = str("$name:$mount");if ($topLevelVolumes->has($name->value())) {$v = $topLevelVolumes->get($name->value());@@ -2499,7 +2499,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$name = $volume->before(':');$mount = $volume->after(':');if ($pull_request_id !== 0) {- $name = $name . "-pr-$pull_request_id";+ $name = $name."-pr-$pull_request_id";}$volume = str("$name:$mount");}@@ -2511,7 +2511,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif ($source && $target) {$uuid = $resource->uuid;if ((str($source)->startsWith('.') || str($source)->startsWith('~') || str($source)->startsWith('/'))) {- $dir = base_configuration_dir() . '/applications/' . $resource->uuid;+ $dir = base_configuration_dir().'/applications/'.$resource->uuid;if (str($source, '.')) {$source = str($source)->replaceFirst('.', $dir);}@@ -2519,20 +2519,20 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal$source = str($source)->replaceFirst('~', $dir);}if ($read_only) {- data_set($volume, 'source', $source . ':' . $target . ':ro');+ data_set($volume, 'source', $source.':'.$target.':ro');} else {- data_set($volume, 'source', $source . ':' . $target);+ data_set($volume, 'source', $source.':'.$target);}} else {if ($pull_request_id === 0) {- $source = $uuid . "-$source";+ $source = $uuid."-$source";} else {- $source = $uuid . "-$source-pr-$pull_request_id";+ $source = $uuid."-$source-pr-$pull_request_id";}if ($read_only) {- data_set($volume, 'source', $source . ':' . $target . ':ro');+ data_set($volume, 'source', $source.':'.$target.':ro');} else {- data_set($volume, 'source', $source . ':' . $target);+ data_set($volume, 'source', $source.':'.$target);}if (! str($source)->startsWith('/')) {if ($topLevelVolumes->has($source)) {@@ -2567,7 +2567,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif ($pull_request_id !== 0 && count($serviceDependencies) > 0) {$serviceDependencies = $serviceDependencies->map(function ($dependency) use ($pull_request_id) {- return $dependency . "-pr-$pull_request_id";+ return $dependency."-pr-$pull_request_id";});data_set($service, 'depends_on', $serviceDependencies->toArray());}@@ -2740,7 +2740,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (Str::lower($forService) === $serviceName) {$fqdn = generateFqdn($server, $containerName);} else {- $fqdn = generateFqdn($server, Str::lower($forService) . '-' . $resource->uuid);+ $fqdn = generateFqdn($server, Str::lower($forService).'-'.$resource->uuid);}if ($port) {$fqdn = "$fqdn:$port";@@ -2944,7 +2944,7 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal});if ($pull_request_id !== 0) {$services->each(function ($service, $serviceName) use ($pull_request_id, $services) {- $services[$serviceName . "-pr-$pull_request_id"] = $service;+ $services[$serviceName."-pr-$pull_request_id"] = $service;data_forget($services, $serviceName);});}@@ -3372,22 +3372,22 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int}if ($type->value() === 'bind') {if ($source->value() === '/var/run/docker.sock') {- $volume = $source->value() . ':' . $target->value();+ $volume = $source->value().':'.$target->value();} elseif ($source->value() === '/tmp' || $source->value() === '/tmp/') {- $volume = $source->value() . ':' . $target->value();+ $volume = $source->value().':'.$target->value();} else {if ((int) $resource->compose_parsing_version >= 4) {if ($isApplication) {- $mainDirectory = str(base_configuration_dir() . '/applications/' . $uuid);+ $mainDirectory = str(base_configuration_dir().'/applications/'.$uuid);} elseif ($isService) {- $mainDirectory = str(base_configuration_dir() . '/services/' . $uuid);+ $mainDirectory = str(base_configuration_dir().'/services/'.$uuid);}} else {- $mainDirectory = str(base_configuration_dir() . '/applications/' . $uuid);+ $mainDirectory = str(base_configuration_dir().'/applications/'.$uuid);}$source = replaceLocalSource($source, $mainDirectory);if ($isApplication && $isPullRequest) {- $source = $source . "-pr-$pullRequestId";+ $source = $source."-pr-$pullRequestId";}LocalFileVolume::updateOrCreate([@@ -3407,12 +3407,12 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?intif (isDev()) {if ((int) $resource->compose_parsing_version >= 4) {if ($isApplication) {- $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/applications/' . $uuid);+ $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/applications/'.$uuid);} elseif ($isService) {- $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/services/' . $uuid);+ $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/services/'.$uuid);}} else {- $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/applications/' . $uuid);+ $source = $source->replace($mainDirectory, '/var/lib/docker/volumes/coolify_dev_coolify_data/_data/applications/'.$uuid);}}$volume = "$source:$target";@@ -4081,7 +4081,7 @@ function isEmailRateLimited(string $limiterKey, int $decaySeconds = 3600, ?calla$limiterKey,$maxAttempts = 0,function () use (&$rateLimited, &$limiterKey, $callbackOnSuccess) {- isDev() && loggy('Rate limit not reached for ' . $limiterKey);+ isDev() && loggy('Rate limit not reached for '.$limiterKey);$rateLimited = false;if ($callbackOnSuccess) {@@ -4091,7 +4091,7 @@ function isEmailRateLimited(string $limiterKey, int $decaySeconds = 3600, ?calla$decaySeconds,);if (! $executed) {- isDev() && loggy('Rate limit reached for ' . $limiterKey . '. Rate limiter will be disabled for ' . $decaySeconds . ' seconds.');+ isDev() && loggy('Rate limit reached for '.$limiterKey.'. Rate limiter will be disabled for '.$decaySeconds.' seconds.');$rateLimited = true;}