64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
version: '3.8'
|
||
|
||
services:
|
||
# 产品经理角色
|
||
pm:
|
||
image: openclaw/openclaw:latest
|
||
container_name: openclaw-pm
|
||
volumes:
|
||
- ./roles/pm:/workspace
|
||
- ./shared:/shared
|
||
environment:
|
||
- OPENCLAW_WORKSPACE=/workspace
|
||
- SHARED_DIR=/shared
|
||
command: ["openclaw", "workspace", "/workspace"]
|
||
restart: unless-stopped
|
||
|
||
# 后端工程师角色
|
||
backend:
|
||
image: openclaw/openclaw:latest
|
||
container_name: openclaw-backend
|
||
volumes:
|
||
- ./roles/dev-backend:/workspace
|
||
- ./shared:/shared
|
||
environment:
|
||
- OPENCLAW_WORKSPACE=/workspace
|
||
- SHARED_DIR=/shared
|
||
command: ["openclaw", "workspace", "/workspace"]
|
||
restart: unless-stopped
|
||
|
||
# 前端工程师角色
|
||
frontend:
|
||
image: openclaw/openclaw:latest
|
||
container_name: openclaw-frontend
|
||
volumes:
|
||
- ./roles/dev-frontend:/workspace
|
||
- ./shared:/shared
|
||
environment:
|
||
- OPENCLAW_WORKSPACE=/workspace
|
||
- SHARED_DIR=/shared
|
||
command: ["openclaw", "workspace", "/workspace"]
|
||
restart: unless-stopped
|
||
|
||
# 测试工程师角色
|
||
qa:
|
||
image: openclaw/openclaw:latest
|
||
container_name: openclaw-qa
|
||
volumes:
|
||
- ./roles/qa:/workspace
|
||
- ./shared:/shared
|
||
environment:
|
||
- OPENCLAW_WORKSPACE=/workspace
|
||
- SHARED_DIR=/shared
|
||
command: ["openclaw", "workspace", "/workspace"]
|
||
restart: unless-stopped
|
||
|
||
# Web界面(可选)
|
||
web-ui:
|
||
image: nginx:alpine
|
||
container_name: openclaw-web-ui
|
||
ports:
|
||
- "8080:80"
|
||
volumes:
|
||
- ./web:/usr/share/nginx/html
|
||
restart: unless-stopped |