chore(部署): 增加 Docker 部署配置
关键改动: - 新增本地和生产 Docker Compose、Web/Server Dockerfile 与 Nginx 模板 - 增加生产部署校验脚本、环境变量示例和 Prisma 初始迁移 - 更新部署文档、README 和架构/决策/流程/路线图说明 Co-Authored-By: Codex GPT-5 <codex@openai.com>
This commit is contained in:
32
.env.production.example
Normal file
32
.env.production.example
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copy to .env.production on the server and replace every change-me value.
|
||||
|
||||
COMPOSE_PROJECT_NAME=ftb_pm
|
||||
|
||||
# Public entrypoint
|
||||
SERVER_NAME=pm.example.com
|
||||
HTTP_PORT=80
|
||||
CLIENT_MAX_BODY_SIZE=20m
|
||||
|
||||
# Database
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=change-me-strong-postgres-password
|
||||
POSTGRES_DB=ftb_pm
|
||||
DATABASE_URL=postgresql://postgres:change-me-strong-postgres-password@postgres:5432/ftb_pm
|
||||
|
||||
# Redis
|
||||
REDIS_URL=redis://redis:6379
|
||||
|
||||
# Web
|
||||
# For same-domain Nginx deployment, keep this relative path so browser requests go to /api/v1.
|
||||
NEXT_PUBLIC_API_URL=/api/v1
|
||||
NEXTAUTH_URL=https://pm.example.com
|
||||
NEXTAUTH_SECRET=change-me-random-32-byte-secret
|
||||
|
||||
# AI provider fallback. Admins can also configure providers in /admin/ai-config.
|
||||
ANTHROPIC_API_KEY=sk-ant-xxx
|
||||
|
||||
# Optional mail notification settings
|
||||
SMTP_HOST=
|
||||
SMTP_PORT=465
|
||||
SMTP_USER=
|
||||
SMTP_PASS=
|
||||
Reference in New Issue
Block a user