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: Set default name for Docker volumes if it is null
Andras Bacsai023ee5db9913
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex ebeacf11ee..15ed4452d1 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -1373,6 +1373,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (data_get($v, 'driver_opts')) {// Do nothing}+ if (is_null(data_get($v, 'name'))) {+ data_set($v, 'name', $name);+ }+ data_set($topLevelVolumes, $name, $v);} else {$topLevelVolumes->put($name, ['name' => $name,@@ -1384,6 +1388,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (data_get($v, 'driver_opts')) {// Do nothing}+ if (is_null(data_get($v, 'name'))) {+ data_set($v, 'name', $name->value());+ }+ data_set($topLevelVolumes, $name->value(), $v);} else {$topLevelVolumes->put($name->value(), ['name' => $name->value(),@@ -1437,6 +1445,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = falif (data_get($v, 'driver_opts')) {// Do nothing}+ if (is_null(data_get($v, 'name'))) {+ data_set($v, 'name', $source);+ }+ data_set($topLevelVolumes, $source, $v);} else {$topLevelVolumes->put($source, ['name' => $source,