lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.37k stars 9.94k forks source link

[Request] kubernetes 部署指导 #2587

Open chenxinlong opened 5 months ago

chenxinlong commented 5 months ago

🥰 需求描述

从官方文档上我找到了 docker/docker compose 部署文档,但是我没有发现 "持久化“ 相关配置。

在 kubernetes 上部署时我需要将 lobe-chat 的持久化数据存储到 pvc 上,我想要知道目前 lobe-chat 以容器方式运行时,数据存储在哪个路径?

🧐 解决方案

开放出一个环境变量,指定 lobe-chat 的持久化数据路径。

📝 补充信息

No response

lobehubbot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

I found the docker/docker compose deployment documentation from the official documentation, but I did not find the "persistence" related configuration.

When deploying on kubernetes, I need to store the persistent data of lobe-chat on pvc. I want to know which path the data is stored in when lobe-chat is currently running as a container?

🧐 Solution

Open an environment variable to specify the persistent data path of lobe-chat.

📝 Supplementary information

No response

lobehubbot commented 5 months ago

👀 @chenxinlong

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

cy948 commented 5 months ago

目前没有持久化,待 #2556 合并后会有后端数据库支持。

lobehubbot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


There is currently no persistence, and there will be backend database support after #2556 is merged.

chenxinlong commented 5 months ago

目前没有持久化,待 #2556 合并后会有后端数据库支持。

了解。

能否支持通过环境变量指定持久化数据路径,例如 POSTGRES_DATA 。这对 lobe-chat 部署在 kubernetes 环境会更加友好。

lobehubbot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


There is currently no persistence, and there will be backend database support after #2556 is merged.

learn.

Is it possible to support specifying the persistent data path through environment variables, such as POSTGRES_DATA? This will be more friendly for lobe-chat to be deployed in the kubernetes environment.

cy948 commented 5 months ago

能否支持通过环境变量指定持久化数据路径,例如 POSTGRES_DATA 。这对 lobe-chat 部署在 kubernetes 环境会更加友好。

目前还没有提供 docker compose 的部署方式,现在用的是 neon 提供的 serverless pgsql

lobehubbot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Can you support specifying the persistent data path through environment variables, such as POSTGRES_DATA? This will be more friendly for lobe-chat to be deployed in the kubernetes environment.

Currently, there is no deployment method for docker compose. Currently, serverless pgsql provided by neon is used.