services: feishu: build: context: . dockerfile: docker/Dockerfile.feishu image: agent/feishu:latest container_name: agent-feishu restart: unless-stopped volumes: - ./gateway/core/channels/feishu/openclaw-lark-patch/src/http/config.yml:/app/config.yml env_file: - .env environment: - FEISHU_HTTP_PORT=4380 - GATEWAY_FEISHU_WEBHOOK_URL=http://localhost:8000/api/channels/feishu/openclaw/webhook ports: - "4380:4380" networks: - agent gateway: build: context: . dockerfile: docker/Dockerfile.gateway image: agent/gateway:latest container_name: agent-gateway restart: unless-stopped env_file: - .env volumes: # workspace 与 shared 数据卷 - workspace_root:/root/.gateway/workspaces - workspace_shared:/root/.gateway/shared # 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器 - /var/run/docker.sock:/var/run/docker.sock:ro networks: - agent workspace: build: context: . dockerfile: docker/Dockerfile.workspace image: agent/workspace:latest profiles: - build-only networks: - agent volumes: workspace_root: workspace_shared: networks: agent: name: agent