refactor(database): 将数据库主机配置从容器内部切换为本地,定期更新交流群二维码 (#17)

将数据库连接配置中的主机从`host.docker.internal`切换为`localhost`,以便在本地开发环境中更方便地访问数据库。
This commit is contained in:
zstar 2025-04-07 11:59:31 +08:00 committed by GitHub
parent 3b5333dc87
commit 8751af209b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 159 KiB

View File

@ -4,8 +4,8 @@ from datetime import datetime
# 数据库连接配置
db_config = {
"host": "host.docker.internal", # 如果是在Docke容器内部访问数据库
# "host": "localhost",
# "host": "host.docker.internal", # 如果是在Docke容器内部访问数据库
"host": "localhost",
"port": 5455,
"user": "root",
"password": "infini_rag_flow",