services: open-webui: image: ghcr.io/open-webui/open-webui:main restart: always ports: - "127.0.0.1:8091:8080" volumes: - openwebui_data:/app/backend/data environment: - OLLAMA_BASE_URL=http://host.docker.internal:11434 # закреплён, чтобы обновления контейнера не разлогинивали сессии - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY} - WEBUI_SECRET_KEY=${WEBUI_SECRET_KEY} labels: - "traefik.enable=true" - "traefik.http.routers.openwebui.rule=Host(`ai.kzbrd.ru`)" - "traefik.http.routers.openwebui.entrypoints=websecure" - "traefik.http.routers.openwebui.tls=true" - "traefik.http.routers.openwebui.tls.certresolver=myresolver" networks: - proxy volumes: openwebui_data: networks: proxy: external: true name: traefik_proxy