Refactor traefik rule for librechat service in swarm/librechat.yml

This commit is contained in:
2024-06-10 14:58:45 +08:00
parent 825697c134
commit 4ffd4dda5a
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -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}