|
@@ -18,15 +18,36 @@ services:
|
|
|
networks:
|
|
networks:
|
|
|
- agent
|
|
- agent
|
|
|
|
|
|
|
|
- gateway:
|
|
|
|
|
|
|
+ server:
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
- dockerfile: docker/Dockerfile.gateway
|
|
|
|
|
- image: agent/gateway:latest
|
|
|
|
|
|
|
+ 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
|
|
|
|
|
+ ports:
|
|
|
|
|
+ - "8001:8000"
|
|
|
|
|
+ entrypoint: "python /app/api_server.py"
|
|
|
|
|
+ networks:
|
|
|
|
|
+ - agent
|
|
|
|
|
+
|
|
|
|
|
+ gateway:
|
|
|
|
|
+ image: agent/server:latest
|
|
|
container_name: agent-gateway
|
|
container_name: agent-gateway
|
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
|
env_file:
|
|
env_file:
|
|
|
- .env
|
|
- .env
|
|
|
|
|
+ environment:
|
|
|
|
|
+ - FEISHU_HTTP_BASE_URL=http://feishu:4380
|
|
|
|
|
+ - CHANNELS_DISPATCH_REACTIONS=false
|
|
|
|
|
+ - CHANNELS_DISPATCH_CARD_ACTIONS=false
|
|
|
volumes:
|
|
volumes:
|
|
|
# workspace 与 shared 数据卷
|
|
# workspace 与 shared 数据卷
|
|
|
- workspace_root:/root/.gateway/workspaces
|
|
- workspace_root:/root/.gateway/workspaces
|
|
@@ -34,7 +55,8 @@ services:
|
|
|
# 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器
|
|
# 将宿主机的 docker.sock 暴露给 gateway,用于创建 workspace 容器
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
ports:
|
|
ports:
|
|
|
- - "8000:8000"
|
|
|
|
|
|
|
+ - "8002:8000"
|
|
|
|
|
+ entrypoint: "python /app/gateway_server.py"
|
|
|
networks:
|
|
networks:
|
|
|
- agent
|
|
- agent
|
|
|
|
|
|
|
@@ -45,8 +67,6 @@ services:
|
|
|
image: agent/workspace:latest
|
|
image: agent/workspace:latest
|
|
|
profiles:
|
|
profiles:
|
|
|
- build-only
|
|
- build-only
|
|
|
- networks:
|
|
|
|
|
- - agent
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
volumes:
|
|
|
workspace_root:
|
|
workspace_root:
|