fix(api): add custom labels generation for applications with readonly container label setting enabled
This commit is contained in:
parent
88d33d177e
commit
6e3e80f1c2
1 changed files with 3 additions and 0 deletions
|
|
@ -2284,6 +2284,9 @@ public function update_by_uuid(Request $request)
|
|||
data_set($data, 'docker_compose_domains', json_encode($dockerComposeDomainsJson));
|
||||
}
|
||||
$application->fill($data);
|
||||
if ($application->settings->is_container_label_readonly_enabled && $requestHasDomains && $server->isProxyShouldRun()) {
|
||||
$application->custom_labels = str(implode('|coolify|', generateLabelsApplication($application)))->replace('|coolify|', "\n");
|
||||
}
|
||||
$application->save();
|
||||
|
||||
if ($instantDeploy) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue