docker-compose.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. services:
  2. feishu:
  3. build:
  4. context: .
  5. dockerfile: docker/Dockerfile.feishu
  6. image: agent/feishu:latest
  7. container_name: agent-feishu
  8. restart: unless-stopped
  9. volumes:
  10. - ./gateway/core/channels/feishu/openclaw-lark-patch/src/http/config.yml:/app/config.yml
  11. env_file:
  12. - .env
  13. environment:
  14. - FEISHU_HTTP_PORT=4380
  15. - GATEWAY_FEISHU_WEBHOOK_URL=http://gateway:8000/api/channels/feishu/inbound/webhook
  16. ports:
  17. - "4380:4380"
  18. networks:
  19. - agent
  20. server:
  21. build:
  22. context: .
  23. dockerfile: docker/Dockerfile.server
  24. image: agent/server:latest
  25. profiles:
  26. - build-only
  27. api:
  28. image: agent/server:latest
  29. container_name: agent-api
  30. restart: unless-stopped
  31. env_file:
  32. - .env
  33. ports:
  34. - "8001:8000"
  35. entrypoint: "python /app/api_server.py"
  36. networks:
  37. - agent
  38. gateway:
  39. image: agent/server:latest
  40. container_name: agent-gateway
  41. restart: unless-stopped
  42. env_file:
  43. - .env
  44. environment:
  45. - FEISHU_HTTP_BASE_URL=http://feishu:4380
  46. - GATEWAY_AGENT_API_BASE_URL=http://api:8000
  47. - CHANNELS_DISPATCH_REACTIONS=false
  48. - CHANNELS_DISPATCH_CARD_ACTIONS=false
  49. volumes:
  50. # workspace 与 shared 数据卷
  51. - workspace_root:/root/.gateway/workspaces
  52. - workspace_shared:/root/.gateway/shared
  53. # 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器
  54. - /var/run/docker.sock:/var/run/docker.sock:ro
  55. ports:
  56. - "8002:8000"
  57. entrypoint: "python /app/gateway_server.py"
  58. networks:
  59. - agent
  60. workspace:
  61. build:
  62. context: .
  63. dockerfile: docker/Dockerfile.workspace
  64. image: agent/workspace:latest
  65. profiles:
  66. - build-only
  67. volumes:
  68. workspace_root:
  69. workspace_shared:
  70. networks:
  71. agent:
  72. name: agent