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: new volumes for services should have - instead of _
Andras Bacsai5d6ee04991c5
diff --git a/app/Models/Service.php b/app/Models/Service.phpindex cfbfeaf488..05be5fef4d 100644--- a/app/Models/Service.php+++ b/app/Models/Service.php@@ -248,7 +248,7 @@ class Service extends BaseModel// Collect/create/update volumesif ($serviceVolumes->count() > 0) {- $serviceVolumes = $serviceVolumes->map(function ($volume) use ($savedService, $topLevelVolumes) {+ $serviceVolumes = $serviceVolumes->map(function ($volume) use ($savedService, $topLevelVolumes, $isNew) {$type = null;$source = null;$target = null;@@ -298,7 +298,11 @@ class Service extends BaseModel);} else if ($type->value() === 'volume') {$slug = Str::slug($source, '-');- $name = "{$savedService->service->uuid}_{$slug}";+ if ($isNew) {+ $name = "{$savedService->service->uuid}-{$slug}";+ } else {+ $name = "{$savedService->service->uuid}_{$slug}";+ }if (is_string($volume)) {$source = Str::of($volume)->before(':');$target = Str::of($volume)->after(':')->beforeLast(':');@@ -323,8 +327,6 @@ class Service extends BaseModel);}$savedService->getFilesFromServer();- ray($volume);-return $volume;});data_set($service, 'volumes', $serviceVolumes->toArray());