Docker Compose Deployment
Build Image
From the KafClaw source directory:
make docker-build
Run
Set host repo paths and start:
make docker-up
SYSTEM_REPO_PATHdefaults to current directoryWORK_REPO_PATHdefaults to~/.kafclaw/work-repo
Stop
make docker-down
Logs
make docker-logs
Configuration
The Docker Compose setup mounts the following volumes:
| Host Path | Container Path | Purpose |
|---|---|---|
$SYSTEM_REPO_PATH | /opt/system-repo | System/identity repository |
$WORK_REPO_PATH | /opt/work-repo | Work repository |
~/.kafclaw | /root/.kafclaw | Config, timeline DB, WhatsApp session |
Ports exposed:
18790- API server (POST /chat)18791- Dashboard / Web UI
Notes
- Uses
kafclaw:localimage only (no remote pulls). - Base image:
alpine:3.20withca-certificates. - Entrypoint:
/usr/local/bin/kafclaw gateway