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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: traefik labels for multiport deployments
Andras Bacsaid4a7d0d25fdb
diff --git a/bootstrap/helpers/docker.php b/bootstrap/helpers/docker.phpindex e22a3596ca..1427548017 100644--- a/bootstrap/helpers/docker.php+++ b/bootstrap/helpers/docker.php@@ -157,11 +157,13 @@ function fqdnLabelsForTraefik(Collection $domains, $container_name, $is_force_ht$path = $url->getPath();$schema = $url->getScheme();$port = $url->getPort();- $slug = Str::slug($host . $path);-- $http_label = "{$container_name}-{$slug}-http";- $https_label = "{$container_name}-{$slug}-https";+ $http_label = "{$container_name}-http";+ $https_label = "{$container_name}-https";+ if ($port) {+ $http_label = "{$http_label}-{$port}";+ $https_label = "{$https_label}-{$port}";+ }if ($schema === 'https') {// Set labels for https$labels->push("traefik.http.routers.{$https_label}.rule=Host(`{$host}`) && PathPrefix(`{$path}`)");