Merge pull request #116 from Yan233th/main

补充了Docker部署文档,调整一些小细节
This commit is contained in:
SengokuCola
2025-03-09 19:15:14 +08:00
committed by GitHub
8 changed files with 61 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ from src.common.database import Database
# 从环境变量获取配置
Database.initialize(
host=os.getenv("MONGODB_HOST", "localhost"),
host=os.getenv("MONGODB_HOST", "127.0.0.1"),
port=int(os.getenv("MONGODB_PORT", "27017")),
db_name=os.getenv("DATABASE_NAME", "maimai"),
username=os.getenv("MONGODB_USERNAME"),