From 23b35bb6a526de8761d6485034fe131097faa153 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 10 Dec 2024 21:06:30 +0100 Subject: [PATCH] fix(docker-builder): missing traefik labels for exposed app --- .../src/modules/docker/builders/traefik-labels.builder.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/modules/docker/builders/traefik-labels.builder.ts b/packages/backend/src/modules/docker/builders/traefik-labels.builder.ts index 322dde32e1..576fc46d9f 100644 --- a/packages/backend/src/modules/docker/builders/traefik-labels.builder.ts +++ b/packages/backend/src/modules/docker/builders/traefik-labels.builder.ts @@ -22,10 +22,12 @@ export class TraefikLabelsBuilder { Object.assign(this.labels, { 'traefik.enable': true, [`traefik.http.routers.${this.params.appId}-insecure.rule`]: 'Host(`${APP_DOMAIN}`)', + [`traefik.http.routers.${this.params.appId}-insecure.entrypoints`]: 'web', [`traefik.http.routers.${this.params.appId}-insecure.service`]: this.params.appId, [`traefik.http.routers.${this.params.appId}-insecure.middlewares`]: `${this.params.appId}-web-redirect`, [`traefik.http.routers.${this.params.appId}.rule`]: 'Host(`${APP_DOMAIN}`)', [`traefik.http.routers.${this.params.appId}.entrypoints`]: 'websecure', + [`traefik.http.routers.${this.params.appId}.service`]: this.params.appId, [`traefik.http.routers.${this.params.appId}.tls.certresolver`]: 'myresolver', }); }