feat: clawteam configuration and update docker-compose and gitignore to support team data persistence

This commit is contained in:
2026-04-06 10:36:06 +07:00
parent 2816d45483
commit 9c80fd3e8f
3 changed files with 86 additions and 37 deletions
+37
View File
@@ -0,0 +1,37 @@
{
"name": "dev-team",
"description": "Production dev team: Tech Lead, Frontend, Backend, UX/UI",
"leadAgentId": "leader-001",
"createdAt": "2026-04-06T02:42:22.422921+00:00",
"members": [
{
"name": "leader",
"user": "",
"agentId": "leader-001",
"agentType": "leader",
"joinedAt": "2026-04-06T02:42:22.422889+00:00"
},
{
"name": "uxui-dev",
"user": "",
"agentId": "8c3c909b44ec",
"agentType": "general-purpose",
"joinedAt": "2026-04-06T02:44:31.857759+00:00"
},
{
"name": "backend-dev",
"user": "",
"agentId": "7dfa9e8efa4f",
"agentType": "general-purpose",
"joinedAt": "2026-04-06T02:44:31.941566+00:00"
},
{
"name": "frontend-dev",
"user": "",
"agentId": "27dd094b4911",
"agentType": "general-purpose",
"joinedAt": "2026-04-06T02:45:32.846156+00:00"
}
],
"budgetCents": 0.0
}
+12
View File
@@ -80,3 +80,15 @@
.idea .idea
.openclaw/subagents/runs.json .openclaw/subagents/runs.json
# ==========================================
# 5. Clawteam Data
# ==========================================
.clawteam/*
!.clawteam/teams/
!.clawteam/teams/*/
.clawteam/teams/*/events/
.clawteam/teams/*/inboxes/
.clawteam/teams/*/spawn_registry.json
.clawteam/teams/*/spawn_registry.json.lock
!.clawteam/teams/*/config.json
+36 -36
View File
@@ -23,6 +23,7 @@ services:
TZ: ${OPENCLAW_TZ:-UTC} TZ: ${OPENCLAW_TZ:-UTC}
volumes: volumes:
- ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw - ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw
- ${CLAWTEAM_CONFIG_DIR:-./.clawteam}:/home/node/.clawteam
- ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace - ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace
ports: ports:
- "${OPENCLAW_GATEWAY_PORT:-18789}:18789" - "${OPENCLAW_GATEWAY_PORT:-18789}:18789"
@@ -41,39 +42,38 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 20s start_period: 20s
# openclaw-cli:
openclaw-cli: # image: openclaw-clawteam:latest
image: openclaw-clawteam:latest # pull_policy: build
pull_policy: build # network_mode: "service:openclaw-gateway"
network_mode: "service:openclaw-gateway" # deploy:
deploy: # resources:
resources: # limits:
limits: # cpus: '2'
cpus: '2' # memory: 4G
memory: 4G # cap_drop:
cap_drop: # - NET_RAW
- NET_RAW # - NET_ADMIN
- NET_ADMIN # security_opt:
security_opt: # - no-new-privileges:true
- no-new-privileges:true # environment:
environment: # HOME: /home/node
HOME: /home/node # TERM: xterm-256color
TERM: xterm-256color # NODE_OPTIONS: "--max-old-space-size=4096"
NODE_OPTIONS: "--max-old-space-size=4096" # OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN:-team-token}
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN:-team-token} # OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-} # BROWSER: echo
BROWSER: echo # CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY:-}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY:-} # CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY:-}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY:-} # CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE:-}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE:-} # TZ: ${OPENCLAW_TZ:-UTC}
TZ: ${OPENCLAW_TZ:-UTC} # volumes:
volumes: # - ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw
- ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw # - ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace
- ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace # stdin_open: true
stdin_open: true # tty: true
tty: true # init: true
init: true # entrypoint: [ "/bin/bash", "-c" ]
entrypoint: [ "/bin/bash", "-c" ] # command: [ "tail -f /dev/null" ]
command: [ "tail -f /dev/null" ] # depends_on:
depends_on: # - openclaw-gateway
- openclaw-gateway