64ecd99dc7
Phase 6: OpenClaw docker-compose (port 3100) with health check Phase 9: Enhanced backup.sh with full DB/config coverage + Telegram alerts Phase 10: Health checks on all compose files, /api/system/notify endpoint
37 lines
911 B
YAML
37 lines
911 B
YAML
services:
|
|
openclaw-gateway:
|
|
image: ghcr.io/openclaw/openclaw:latest
|
|
container_name: openclaw-gateway
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3100:18789"
|
|
environment:
|
|
HOME: /home/node
|
|
TERM: xterm-256color
|
|
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
|
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
|
|
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-}
|
|
volumes:
|
|
- ./data:/home/node/.openclaw
|
|
init: true
|
|
command:
|
|
[
|
|
"node",
|
|
"dist/index.js",
|
|
"gateway",
|
|
"--bind",
|
|
"lan",
|
|
"--port",
|
|
"18789",
|
|
]
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "fetch('http://localhost:18789').then(r=>{process.exit(r.ok?0:1)}).catch(()=>process.exit(1))"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|