docker-compose.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. gateway:
  21. build:
  22. context: .
  23. dockerfile: docker/Dockerfile.gateway
  24. image: agent/gateway:latest
  25. container_name: agent-gateway
  26. restart: unless-stopped
  27. env_file:
  28. - .env
  29. volumes:
  30. # workspace 与 shared 数据卷
  31. - workspace_root:/root/.gateway/workspaces
  32. - workspace_shared:/root/.gateway/shared
  33. # 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器
  34. - /var/run/docker.sock:/var/run/docker.sock:ro
  35. ports:
  36. - "8000:8000"
  37. networks:
  38. - agent
  39. workspace:
  40. build:
  41. context: .
  42. dockerfile: docker/Dockerfile.workspace
  43. image: agent/workspace:latest
  44. profiles:
  45. - build-only
  46. networks:
  47. - agent
  48. volumes:
  49. workspace_root:
  50. workspace_shared:
  51. networks:
  52. agent:
  53. name: agent