- 将 Dockerfile 和 docker-compose.yml 迁移至 docker/ 目录下统一管理 - 新增 compute 计算模块(API 入口、依赖配置) - 新增 docker/app 和 docker/compute 部署配置 - 新增 demo-development-plan.md 演示开发计划文档 - 更新后端 API 设计、部署计划、架构需求等文档 - 更新 postgres 数据库 schema Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
APP_ENV=prod
|
|
APP_NAME=YG Fine-Tune Platform API
|
|
API_PREFIX=/api
|
|
|
|
POSTGRES_DB=yg_ft
|
|
POSTGRES_USER=yg_ft
|
|
POSTGRES_PASSWORD=change_me
|
|
DATABASE_URL=postgresql+asyncpg://yg_ft:change_me@postgres:5432/yg_ft
|
|
|
|
REDIS_URL=redis://redis:6379/0
|
|
|
|
# Development uses the built-in PostgreSQL/Redis services in docker-compose.yml.
|
|
# For enterprise infrastructure, replace DATABASE_URL/REDIS_URL and remove or disable those services.
|
|
USE_BUILTIN_POSTGRES=true
|
|
USE_BUILTIN_REDIS=true
|
|
|
|
LOG_LEVEL=INFO
|
|
LOG_DIR=/opt/yg-ft/logs/backend
|
|
LOG_FILE_PREFIX=backend
|
|
LOG_ERROR_FILE_PREFIX=error
|
|
LOG_MAX_BYTES=20971520
|
|
LOG_RETENTION_DAYS=10
|
|
|
|
API_PROXY_PASS=http://backend-api:8000
|
|
|
|
# Split deployment: set these to the compute server address, for example http://10.10.20.31:9100.
|
|
COMPUTE_API_BASE_URL=http://compute-api:9100
|
|
COMPUTE_SERVICE_TOKEN=change_me
|
|
FILE_GATEWAY_BASE_URL=http://compute-api:9101
|
|
|
|
# The application side polls Compute API for job state to avoid opening reverse network access.
|
|
COMPUTE_STATUS_SYNC_MODE=polling
|
|
COMPUTE_POLL_INTERVAL_SECONDS=10
|
|
COMPUTE_POLL_BATCH_SIZE=100
|