INSTALANDO OPENCLAW / MOLTBOT NO EASYPANEL
services:
clawdbot_gateway:
image: ramel/openclaw:latest
#impa365/clawdbot:latest
user: root
environment:
HOME: /root
TERM: xterm-256color
NODE_ENV: production
TZ: America/Sao_Paulo
CLAWDBOT_GATEWAY_MODE: local
CLAWDBOT_GATEWAY_BIND: 0.0.0.0
CLAWDBOT_GATEWAY_PORT: 18789
CLAWDBOT_GATEWAY_TOKEN: 123456789 # Sua Senha AQUI
ZAI_API_KEY: 3123456461321651316515135135135131351351312 # SUA API KEY AQUI
volumes:
- clawdbot_config:/root/.clawdbot
- clawdbot_workspace:/root/clawd
- /var/run/docker.sock:/var/run/docker.sock
command:
- /bin/sh
- -lc
- |
set -e
apt-get update
&& apt-get install -y docker.io --no-install-recommends
&& rm -rf /var/lib/apt/lists/*
mkdir -p /root/.clawdbot
cat > /root/.clawdbot/clawdbot.json << 'EOF'
{
"gateway": {
"mode": "local",
"bind": "lan",
"trustedProxies": [
"10.0.0.0/8",
"172.16.0.0/12",
"0.0.0.0/0"
],
"auth": { "mode": "token" },
"controlUi": {
"dangerouslyDisableDeviceAuth": true
}
},
"agents": {
"defaults": {
"model": {
"primary": "zai/glm-4.7"
},
"workspace": "/root/clawd"
}
},
"channels": {
"telegram": {},
"whatsapp": {}
}
}
EOF
export HOME=/root
node dist/index.js gateway run --port 18789 --force
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "dist/index.js", "health", "--json"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
clawdbot_cli:
image: kalinon/openclaw:latest
#impa365/clawdbot:latest
user: root
environment:
HOME: /root
TERM: xterm-256color
TZ: America/Sao_Paulo
ZAI_API_KEY: 123156113131321313.h2xD6eMJg82iaL1N # SUA API KEY AQUI DO ZLM
volumes:
- clawdbot_config:/root/.clawdbot
- clawdbot_workspace:/root/clawd
stdin_open: true
tty: true
entrypoint: ["node", "dist/index.js"]
restart: "no"
volumes:
clawdbot_config:
clawdbot_workspace: