enable traefik for apps

This commit is contained in:
Andras Bacsai 2023-05-04 09:17:44 +02:00
parent ac976d0f3a
commit 135f9ab048

View File

@ -359,6 +359,7 @@ private function set_labels_for_applications()
$labels[] = 'coolify.type=application';
$labels[] = 'coolify.name=' . $this->application->name;
if ($this->application->fqdn) {
$labels[] = 'traefik.enable=true';
$labels[] = "traefik.http.routers.container.rule=Host(`{$this->application->fqdn}`)";
}
return $labels;