docker-compose.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. - CHANNELS_DISPATCH_REACTIONS=false
  47. - CHANNELS_DISPATCH_CARD_ACTIONS=false
  48. volumes:
  49. # workspace 与 shared 数据卷
  50. - workspace_root:/root/.gateway/workspaces
  51. - workspace_shared:/root/.gateway/shared
  52. # 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器
  53. - /var/run/docker.sock:/var/run/docker.sock:ro
  54. ports:
  55. - "8002:8000"
  56. entrypoint: "python /app/gateway_server.py"
  57. networks:
  58. - agent
  59. workspace:
  60. build:
  61. context: .
  62. dockerfile: docker/Dockerfile.workspace
  63. image: agent/workspace:latest
  64. profiles:
  65. - build-only
  66. volumes:
  67. workspace_root:
  68. workspace_shared:
  69. networks:
  70. agent:
  71. name: agent