From 6bc43bd999814563c8fb8af1f6de8b740545b629 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 9 Jan 2024 13:00:07 +0100 Subject: [PATCH] fix: sort and rename (unique part) of labels --- bootstrap/helpers/docker.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.php index 0376fcc6e..781888595 100644 --- a/bootstrap/helpers/docker.php +++ b/bootstrap/helpers/docker.php @@ -226,8 +226,8 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_ if (is_null($port) && !is_null($onlyPort)) { $port = $onlyPort; } - $http_label = "{$uuid}-{$loop}-http"; - $https_label = "{$uuid}-{$loop}-https"; + $http_label = "http-{$loop}-{$uuid}"; + $https_label = "https-{$loop}-{$uuid}"; if ($schema === 'https') { // Set labels for https @@ -275,7 +275,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_ } } - return $labels; + return $labels->sort(); } function generateLabelsApplication(Application $application, ?ApplicationPreview $preview = null): array {