qwen_agent/docker-compose.yml
2025-12-17 20:27:06 +08:00

27 lines
603 B
YAML

version: "3.8"
services:
qwen-agent:
build:
context: .
dockerfile: Dockerfile.modelscope
container_name: qwen-agent-api
ports:
- "8001:8001"
environment:
# 应用配置
- BACKEND_HOST=http://api-dev.gbase.ai
- MAX_CONTEXT_TOKENS=262144
- DEFAULT_THINKING_ENABLE=true
volumes:
# 挂载项目数据目录
- ./projects:/app/projects
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s