feat: 增加生产环境容器编排

This commit is contained in:
2026-07-10 11:50:45 +08:00
parent 9fb3dad5bd
commit fb39c9c543
8 changed files with 196 additions and 0 deletions

View File

@@ -10,6 +10,14 @@ FEISHU_SEARCH_URL=
# 生产环境必须替换为安全账号密码,不能使用 admin123456
# ============================================
APP_ENV=production
MYSQL_ROOT_PASSWORD=replace-with-strong-root-password
MYSQL_PASSWORD=replace-with-strong-database-password
REDIS_PASSWORD=replace-with-strong-redis-password
DATABASE_URL=mysql+pymysql://ai_kb:URL编码后的数据库密码@mysql:3306/ai_knowledge_base_v2?charset=utf8mb4
REDIS_URL=redis://:URL编码后的Redis密码@redis:6379/0
JWT_SECRET_KEY=replace-with-at-least-32-random-characters
# 使用命令生成python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
CONFIG_ENCRYPTION_KEY=replace-with-generated-fernet-key
BOOTSTRAP_ADMIN_USERNAME=admin
BOOTSTRAP_ADMIN_PASSWORD=replace-with-strong-password
BOOTSTRAP_ADMIN_NAME=系统管理员