feat: AI Worker 平台 MVP v1.0.0 - 多租户/项目管理/AI Worker/任务编排/HITL审核/成本治理
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://aiworker:aiworker123@db:5432/ai_worker
|
||||
- SECRET_KEY=production-secret-change-me
|
||||
- DEFAULT_LLM_API_KEY=${LLM_API_KEY:-}
|
||||
- DEFAULT_LLM_BASE_URL=${LLM_BASE_URL:-https://api.openai.com/v1}
|
||||
- DEFAULT_LLM_MODEL=${LLM_MODEL:-gpt-4o-mini}
|
||||
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost:80
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "3000:80"
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: aiworker
|
||||
POSTGRES_PASSWORD: aiworker123
|
||||
POSTGRES_DB: ai_worker
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user