This commit is contained in:
Andras Bacsai
2023-12-08 00:16:22 +01:00
parent a6e76dfabc
commit 82f3d54bc3
9 changed files with 64 additions and 49 deletions

View File

@@ -967,6 +967,10 @@ function parseDockerComposeFile(Service|Application $resource, bool $isNew = fal
}
}
} else {
$foundEnv = EnvironmentVariable::where([
'key' => $key,
'service_id' => $resource->id,
])->first();
if ($value->contains(':-')) {
$key = $value->before(':');
$defaultValue = $value->after(':-');