enable traefik for apps
This commit is contained in:
parent
ac976d0f3a
commit
135f9ab048
@ -359,6 +359,7 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap
|
|||||||
$labels[] = 'coolify.type=application';
|
$labels[] = 'coolify.type=application';
|
||||||
$labels[] = 'coolify.name=' . $this->application->name;
|
$labels[] = 'coolify.name=' . $this->application->name;
|
||||||
if ($this->application->fqdn) {
|
if ($this->application->fqdn) {
|
||||||
|
$labels[] = 'traefik.enable=true';
|
||||||
$labels[] = "traefik.http.routers.container.rule=Host(`{$this->application->fqdn}`)";
|
$labels[] = "traefik.http.routers.container.rule=Host(`{$this->application->fqdn}`)";
|
||||||
}
|
}
|
||||||
return $labels;
|
return $labels;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user