OpenClaw + ClawTeam + Superpowers Git Initialization

This commit is contained in:
2026-04-01 11:54:55 +07:00
parent 1eef79cae7
commit ebd971ff18
140 changed files with 21720 additions and 0 deletions
+109
View File
@@ -0,0 +1,109 @@
services:
openclaw-gateway:
build:
context: .
dockerfile_inline: |
FROM node:24-slim
USER root
# Cài đặt các công cụ lõi và thư viện biên dịch
RUN apt-get update && apt-get install -y python3 python3-pip git tmux curl build-essential && rm -rf /var/lib/apt/lists/*
# Cập nhật npm và cài đặt OpenClaw độc lập
RUN npm install -g npm@latest
RUN npm install -g openclaw@latest --force
# Cài đặt ClawTeam
RUN git clone https://github.com/HKUDS/ClawTeam.git /opt/clawteam
RUN cd /opt/clawteam && pip3 install --break-system-packages --no-cache-dir .
RUN chown -R node:node /opt/clawteam
# Cài đặt Superpowers và dọn dẹp kỹ năng xung đột
RUN git clone https://github.com/obra/superpowers.git /opt/superpowers
RUN rm -rf /opt/superpowers/skills/subagent-driven-development
RUN rm -rf /opt/superpowers/skills/dispatching-parallel-agents
RUN chown -R node:node /opt/superpowers
USER node
image: openclaw-clawteam:latest
deploy:
resources:
limits:
cpus: '4'
memory: 12G
reservations:
memory: 2G
environment:
HOME: /home/node
TERM: xterm-256color
NODE_OPTIONS: "--max-old-space-size=8192"
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN:-team-token}
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY:-}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY:-}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE:-}
TZ: ${OPENCLAW_TZ:-UTC}
volumes:
- ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace
ports:
- "${OPENCLAW_GATEWAY_PORT:-18789}:18789"
- "${OPENCLAW_BRIDGE_PORT:-18789}:18789"
init: true
restart: unless-stopped
command:
[
"openclaw",
"gateway",
"--bind",
"${OPENCLAW_GATEWAY_BIND:-0.0.0.0}",
"--port",
"18789"
]
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:18789/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
openclaw-cli:
image: openclaw-clawteam-standalone:latest
network_mode: "service:openclaw-gateway"
deploy:
resources:
limits:
cpus: '2'
memory: 4G
cap_drop:
- NET_RAW
- NET_ADMIN
security_opt:
- no-new-privileges:true
environment:
HOME: /home/node
TERM: xterm-256color
NODE_OPTIONS: "--max-old-space-size=4096"
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN:-team-token}
OPENCLAW_ALLOW_INSECURE_PRIVATE_WS: ${OPENCLAW_ALLOW_INSECURE_PRIVATE_WS:-}
BROWSER: echo
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY:-}
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY:-}
CLAUDE_WEB_COOKIE: ${CLAUDE_WEB_COOKIE:-}
TZ: ${OPENCLAW_TZ:-UTC}
volumes:
- ${OPENCLAW_CONFIG_DIR:-./.openclaw}:/home/node/.openclaw
- ${OPENCLAW_WORKSPACE_DIR:-./.openclaw/workspace}:/home/node/.openclaw/workspace
stdin_open: true
tty: true
init: true
entrypoint: ["openclaw"]
depends_on:
- openclaw-gateway