docker-compose.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. services:
  2. # 内容寻找 Agent 服务
  3. content-finder:
  4. image: registry.cn-hangzhou.aliyuncs.com/stuuudy/content-finder-agent:latest
  5. build:
  6. context: .
  7. dockerfile: Dockerfile.content-finder
  8. container_name: content-finder-agent
  9. restart: unless-stopped
  10. ports:
  11. - "8080:8080"
  12. volumes:
  13. - /home/data/trace:/app/.trace
  14. - /home/data/output:/app/.output
  15. environment:
  16. - OPEN_ROUTER_API_KEY=${OPEN_ROUTER_API_KEY}
  17. - MODEL=${MODEL:-anthropic/claude-sonnet-4.6}
  18. - TEMPERATURE=${TEMPERATURE:-0.3}
  19. - MAX_ITERATIONS=${MAX_ITERATIONS:-30}
  20. - TRACE_DIR=/app/.trace
  21. - OUTPUT_DIR=/app/.output
  22. - SKILLS_DIR=./skills
  23. - ENABLED_SKILLS=${ENABLED_SKILLS:-}
  24. - PORT=8080
  25. - MAX_CONCURRENT_TASKS=${MAX_CONCURRENT_TASKS:-3}
  26. - SCHEDULE_QUERY_API=${SCHEDULE_QUERY_API:-}
  27. - SCHEDULE_QUERY_API_TIMEOUT=${SCHEDULE_QUERY_API_TIMEOUT:-10.0}
  28. - KNOWHUB_API=${KNOWHUB_API:-http://43.106.118.91:9999}
  29. healthcheck:
  30. test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
  31. interval: 30s
  32. timeout: 10s
  33. retries: 3
  34. start_period: 40s
  35. # 可视化 API 服务
  36. api-server:
  37. image: registry.cn-hangzhou.aliyuncs.com/stuuudy/content-finder-agent-api-server:latest
  38. build:
  39. context: .
  40. dockerfile: Dockerfile.api-server
  41. container_name: content-finder-agent-api-server
  42. restart: unless-stopped
  43. ports:
  44. - "8000:8000"
  45. volumes:
  46. - /home/data/trace:/app/.trace
  47. healthcheck:
  48. test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
  49. interval: 30s
  50. timeout: 10s
  51. retries: 3
  52. start_period: 40s
  53. # 前端服务
  54. frontend:
  55. image: registry.cn-hangzhou.aliyuncs.com/stuuudy/content-finder-agent-frontend:latest
  56. build:
  57. context: .
  58. dockerfile: Dockerfile.frontend
  59. container_name: content-finder-agent-frontend
  60. restart: unless-stopped
  61. ports:
  62. - "3000:3000"
  63. healthcheck:
  64. test: ["CMD", "curl", "-f", "http://localhost:3000"]
  65. interval: 30s
  66. timeout: 10s
  67. retries: 3
  68. start_period: 10s