chore: 更新 docker-compose 命令为 docker compose

统一使用 Docker Compose V2 的现代写法
This commit is contained in:
fawney19
2026-01-03 01:39:45 +08:00
parent cddc22d2b3
commit c02ac56da8
6 changed files with 8 additions and 8 deletions

View File

@@ -411,7 +411,7 @@ def init_db():
print(" 3. 数据库用户名和密码是否正确", file=sys.stderr)
print("", file=sys.stderr)
print("如果使用 Docker请先运行:", file=sys.stderr)
print(" docker-compose up -d postgres redis", file=sys.stderr)
print(" docker compose up -d postgres redis", file=sys.stderr)
print("", file=sys.stderr)
print("=" * 60, file=sys.stderr)
# 使用 os._exit 直接退出,避免 uvicorn 捕获并打印堆栈