Convert all Chinese comments, docstrings, logger/print output, HTTPException detail messages, and API response messages to English across the entire codebase. Functional zh/ja localized strings (e.g. prompt templates, timezone display names, date formats) are preserved as-is. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg16
|
|
container_name: qwen-agent-postgres
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=E5ACJo6zJub4QS
|
|
- POSTGRES_DB=agent_db
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
qwen-agent:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.modelscope
|
|
container_name: qwen-agent-api
|
|
ports:
|
|
- "8001:8001"
|
|
environment:
|
|
# Application config
|
|
- BACKEND_HOST=http://api-dev.gbase.ai
|
|
- MAX_CONTEXT_TOKENS=262144
|
|
# PostgreSQL config
|
|
- CHECKPOINT_DB_URL=postgresql://postgres:E5ACJo6zJub4QS@postgres:5432/agent_db
|
|
- R2_UPLOAD_CONFIG=/app/config/local-upload.yaml
|
|
volumes:
|
|
# Mount project data directories
|
|
- ./projects:/app/projects
|
|
- ./models:/app/models
|
|
- ./public:/app/public
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8001/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
volumes:
|
|
postgres_data:
|