Repository navigation
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
55 lines (53 loc) · 1.71 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
55 lines (53 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
openclaw:
image: openclaw:local
ports:
- "${PORT:-8080}:${PORT:-8080}"
environment:
# Provider (at least one required)
- OPENCODE_API_KEY=${OPENCODE_API_KEY}
- OPENCLAW_PRIMARY_MODEL=opencode/kimi-k2.5
# Auth
- AUTH_USERNAME=${AUTH_USERNAME:-admin}
- AUTH_PASSWORD=${AUTH_PASSWORD}
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN}
# Chat history is /data/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite.
- HOME=/data
- OPENCLAW_HOME=/data
- OPENCLAW_STATE_DIR=/data/.openclaw
- OPENCLAW_WORKSPACE_DIR=/data/workspace
# Browser sidecar. See docker-compose.yml for the 9223 proxy and SSRF allowlist.
- BROWSER_CDP_URL=http://browser:9223
- BROWSER_DEFAULT_PROFILE=openclaw
- BROWSER_EVALUATE_ENABLED=true
# Allowed Origins
- OPENCLAW_ALLOWED_ORIGINS=${OPENCLAW_ALLOWED_ORIGINS}
volumes:
# Required. Chat history lives under /data/.openclaw on this volume.
- openclaw-data:/data
depends_on:
browser:
condition: service_healthy
restart: unless-stopped
browser:
image: openclaw-browser:local
# CDP stays on the compose network at http://browser:9223. Do not publish
# 9222 or 9223. See docker-compose.yml.
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- CHROME_CLI=--remote-debugging-port=9222 --remote-allow-origins=*
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:9223/json/version"]
interval: 5s
timeout: 3s
retries: 20
start_period: 20s
volumes:
- browser-data:/config
shm_size: 2g
restart: unless-stopped
volumes:
openclaw-data:
browser-data: