docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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://localhost:8000/api/channels/feishu/openclaw/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. networks:
  36. - agent
  37. workspace:
  38. build:
  39. context: .
  40. dockerfile: docker/Dockerfile.workspace
  41. image: agent/workspace:latest
  42. profiles:
  43. - build-only
  44. networks:
  45. - agent
  46. volumes:
  47. workspace_root:
  48. workspace_shared:
  49. networks:
  50. agent:
  51. name: agent