-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 1.7 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
services:
claw-agent-dashboard:
image: iota3/claw-agent-dashboard:latest
build:
context: .
args:
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org/}
PIP_INDEX_URL: ${PIP_INDEX_URL:-https://pypi.org/simple/}
# Run as uid=1000 to match host the typical host user, so files written to
# bind-mounted directories (e.g. /agents → ~/.openclaw) are owned by
# the host user (uid=1000) instead of root.
user: "1000:1000"
ports:
- "8080:8080"
volumes:
# Agent workspaces — read-write (save feature needs write access)
- ${OPENCLAW_HOME}:/agents
# Translations + config — writable
- ${DATA_HOST_DIR:-./data}:/data
# NPM global skills — read-only (optional, uncomment if using global skills)
# - ${OPENCLAW_SKILLS_DIR}:/global-skills:ro
# Host /proc for system metrics — read-only (optional, Linux only)
# - /proc:/host/proc:ro
# Gateway logs — read-only (optional, for event parsing)
# - ${OPENCLAW_LOGS_DIR}:/host/logs:ro
# Session data — read-only (optional, for detailed session info)
# - ${OPENCLAW_AGENTS_DIR}:/host/openclaw-data/agents:ro
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- AGENTS_DIR=/agents
- DATA_DIR=/data
- AGENTS_HOST_DIR=${OPENCLAW_HOME}
- DATA_HOST_DIR=${DATA_HOST_DIR:-./data}
- GLOBAL_SKILLS_DIR=/global-skills
- SHARED_SKILLS_DIR=/agents/shared-skills
- LOGS_DIR=/host/logs
- SESSION_DATA_DIR=/host/openclaw-data/agents
- OPENCLAW_CONFIG_PATH=/agents/openclaw.json
- GATEWAY_URL=${GATEWAY_URL:-http://host.docker.internal:18789}
- GATEWAY_TOKEN=${GATEWAY_TOKEN:-}