| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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://gateway:8000/api/channels/feishu/inbound/webhook
- ports:
- - "4380:4380"
- networks:
- - agent
- server:
- build:
- context: .
- dockerfile: docker/Dockerfile.server
- image: agent/server:latest
- profiles:
- - build-only
- api:
- image: agent/server:latest
- container_name: agent-api
- restart: unless-stopped
- env_file:
- - .env
- environment:
- - FEISHU_HTTP_BASE_URL=http://feishu:4380
- ports:
- - "8001:8000"
- entrypoint: "python /app/api_server.py"
- networks:
- - agent
- gateway:
- image: agent/server:latest
- container_name: agent-gateway
- restart: unless-stopped
- env_file:
- - .env
- environment:
- - FEISHU_HTTP_BASE_URL=http://feishu:4380
- - GATEWAY_AGENT_API_BASE_URL=http://api:8000
- - CHANNELS_DISPATCH_REACTIONS=false
- - CHANNELS_DISPATCH_CARD_ACTIONS=false
- 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
- ports:
- - "8002:8000"
- entrypoint: "python /app/gateway_server.py"
- networks:
- - agent
- workspace:
- build:
- context: .
- dockerfile: docker/Dockerfile.workspace
- image: agent/workspace:latest
- profiles:
- - build-only
- volumes:
- workspace_root:
- workspace_shared:
- networks:
- agent:
- name: agent
|