Skip to content

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.

fix: duplicate compose variable

Andras Bacsai5e5873a08ded
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 2bb619aa86..deb8ca6a8a 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -1399,6 +1399,11 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
$key = $value;
$defaultValue = null;
}
+ $foundEnv = EnvironmentVariable::where([
+ 'key' => $key,
+ 'application_id' => $resource->id,
+ 'is_preview' => false,
+ ])->first();
if ($foundEnv) {
$defaultValue = data_get($foundEnv, 'value');
}