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: service env variables
Andras Bacsaid6fb54f3c3d3
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex ff4fe6d022..77226f1c32 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -1839,16 +1839,23 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal// Get variables from the serviceforeach ($serviceVariables as $variableName => $variable) {if (is_numeric($variableName)) {- $variable = str($variable);- if ($variable->contains('=')) {- // - SESSION_SECRET=123- // - SESSION_SECRET=- $key = $variable->before('=');- $value = $variable->after('=');+ if (is_array($variable)) {+ // - SESSION_SECRET: 123+ // - SESSION_SECRET:+ $key = str(collect($variable)->keys()->first());+ $value = str(collect($variable)->values()->first());} else {- // - SESSION_SECRET- $key = $variable;- $value = null;+ $variable = str($variable);+ if ($variable->contains('=')) {+ // - SESSION_SECRET=123+ // - SESSION_SECRET=+ $key = $variable->before('=');+ $value = $variable->after('=');+ } else {+ // - SESSION_SECRET+ $key = $variable;+ $value = null;+ }}} else {// SESSION_SECRET: 123