Refactor swarm/librechat.yml to update traefik rule for librechat service

This commit is contained in:
2024-06-10 14:19:56 +08:00
parent bc34e91fe6
commit c07c840de4
2 changed files with 25 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
networks:
traefik-public:
external: true
services:
open-webui:
image: ghcr.io/open-webui/open-webui:${WEBUI_DOCKER_TAG-main}
container_name: open-webui
volumes:
- /var/data/open-webui:/app/backend/data
extra_hosts:
- host.docker.internal:host-gateway
networks:
- traefik-public
deploy:
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- 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}