[Request] Docker 部署时数据存放在本地端而不是浏览器中 #1459
sherlcok314159 posted onGitHub
🥰 需求描述
当手机和电脑同时使用时,总是需要来进行同步数据,而 docker 部署时,可以通过 docker-compose 中的 volumes 来将数据存放在本地数据库中,这个也是目前很多开源的选择,有以下好处:
- 多端不需要手动导出,进行同步
- 避免浏览器出问题数据丢失
- 便于迁移数据并进行分析
🧐 解决方案
可以查看很多开源项目的方案,比如 huggingface-chat-ui 用的是 mangodb,miniflux 阅读器用的是 postgres
📝 补充信息
No response
👀 @sherlcok314159
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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
🥰 Description of requirements
When a mobile phone and a computer are used at the same time, there is always a need to synchronize data. When docker is deployed, the data can be stored in the local database through volumes in docker-compose. This is also the choice of many open sources at present, and has the following benefits:
- No need to manually export and synchronize multiple terminals
- Avoid data loss due to browser problems
- Facilitate data migration and analysis
🧐 Solution
You can view the solutions of many open source projects. For example, huggingface-chat-ui uses mangodb, and the miniflux reader uses postgres.
📝 Supplementary information
No response
印象中作者大大有一个 RFC 做这个的不知道是不是同一个需求? https://github.com/lobehub/lobe-chat/discussions/368
✅ @sherlcok314159
This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。
:tada: This issue has been resolved in version 0.141.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
我们在 v0.141.0
上线了基于 YJS 与 WebRTC 的实验性数据同步功能,欢迎测试并反馈:
- 反馈issue: #1683
- 背后思考:https://github.com/lobehub/lobe-chat/discussions/1681
如果上述同步功能不满足你的诉求,可以 Reopen 该issue
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
We have launched an experimental data synchronization function based on YJS and WebRTC in v0.141.0
. We welcome testing and feedback:
- Feedback issue: #1683
- Thoughts behind: https://github.com/lobehub/lobe-chat/discussions/1681
If the above synchronization function does not meet your needs, you can Reopen the issue
体验了 WebRTC 之后,还是想要 docker 本地的模式,麻烦作者开发 @arvinxx
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
After experiencing WebRTC, I still want the local docker mode. Please help the author develop it @arvinxx
感谢你的帮助,但是我看目前 doc 写着尚不支持 docker。麻烦有 docker 的时候在此@我一下,谢谢
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Thanks for your help, but I see that the doc currently says that docker is not supported yet. If you have trouble with docker, please @ me here, thank you