From 4ffd4dda5a9249ca8e0c794fded2062768f83507 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Mon, 10 Jun 2024 14:58:45 +0800 Subject: [PATCH] Refactor traefik rule for librechat service in swarm/librechat.yml --- swarm/librechat.yml | 2 +- swarm/openwebui.yml | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/swarm/librechat.yml b/swarm/librechat.yml index b09addf..482a2cf 100644 --- a/swarm/librechat.yml +++ b/swarm/librechat.yml @@ -57,7 +57,7 @@ services: - traefik.http.routers.librechat.rule=Host(`chat.${DOMAIN}`) - traefik.http.routers.librechat.tls.certresolver=le - traefik.http.routers.librechat.service=librechat_app - - traefik.http.services.librechat_app.loadbalancer.server.port=${PORT} + - traefik.http.services.librechat_app.loadbalancer.server.port=${PORT:-3080} mongodb: image: mongo restart: always diff --git a/swarm/openwebui.yml b/swarm/openwebui.yml index ba8594b..da65503 100644 --- a/swarm/openwebui.yml +++ b/swarm/openwebui.yml @@ -14,9 +14,6 @@ services: networks: - traefik-public deploy: - placement: - constraints: - - node.role == manager labels: - traefik.enable=true - traefik.docker.network=traefik-public @@ -24,5 +21,5 @@ services: - traefik.http.routers.open-webui.entrypoints=https - traefik.http.routers.open-webui.rule=Host(`bot.${DOMAIN}`) - traefik.http.routers.open-webui.tls.certresolver=le - - traefik.http.routers.open-webui.service=open-webui - - traefik.http.services.open-webui.loadbalancer.server.port=${OPEN_WEBUI_PORT-8080} + - traefik.http.routers.open-webui.service=open-webui_app + - traefik.http.services.open-webui_app.loadbalancer.server.port=${OPEN_WEBUI_PORT:-8080}