fix(api): add custom labels generation for applications with readonly container label setting enabled
This commit is contained in:
@@ -2284,6 +2284,9 @@ class ApplicationsController extends Controller
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user