Skip to content

Docker deployment

Docker is the easiest way to run CaberOS on Linux, macOS, or Windows (via WSL2). The Compose stack includes the backend (Python + uv + bubblewrap) and frontend (nginx reverse proxy), with persistent data in a named volume.

  • Docker 24+ with Compose v2
  • 1 GB free RAM
Terminal window
git clone https://github.com/cabernect/caberos.git
cd caberos
./scripts/docker.sh up

Open http://localhost:8080 and log in with admin / admin.

Copy the example environment file and adjust as needed:

Terminal window
cp .env.docker.example .env.docker
Variable Default Description
CABEROS_PORT 8080 Host port for the web UI
AGENTOS_YOLO_MODE false Skip all approval gates (useful for headless deployments)
AGENTOS_LOG_LEVEL info Log verbosity: critical, error, warning, info, or debug
AGENTOS_LOG_ACCESS true Log routine HTTP access requests
Terminal window
./scripts/docker.sh up # Build and start
./scripts/docker.sh down # Stop and remove containers
./scripts/docker.sh logs # Tail logs
./scripts/docker.sh rebuild # Force rebuild without cache

Or use Docker Compose directly:

Terminal window
docker compose up --build -d
docker compose logs -f
docker compose down
Service Image Port Notes
Backend python:3.12-slim + uv 8081 (internal) Bubblewrap needs SYS_ADMIN capability
Frontend nginx:alpine 80 → host :8080 Reverse-proxies /api and /health to backend

The backend container uses cap_add: SYS_ADMIN so bubblewrap can create user namespaces for shell sandboxing. If your Docker setup blocks this capability, replace it with privileged: true in docker-compose.yml.

Application data persists in the caberos-data named volume, including the SQLite database, secret key, workspaces, and agent homes.

Terminal window
# Inspect the volume
docker volume inspect caberos-data
# Back up the volume
docker run --rm -v caberos-data:/data -v $(pwd):/backup alpine tar czf /backup/caberos-data.tar.gz /data
# Restore the volume
docker run --rm -v caberos-data:/data -v $(pwd):/backup alpine tar xzf /backup/caberos-data.tar.gz -C /

Uncomment the db service and AGENTOS_DATABASE_URL in docker-compose.yml:

db:
image: postgres:16-alpine
environment:
POSTGRES_DB: caberos
POSTGRES_USER: caberos
POSTGRES_PASSWORD: caberos
volumes:
- caberos-pg:/var/lib/postgresql/data

Set the database URL in the backend environment:

environment:
- AGENTOS_DATABASE_URL=postgresql+asyncpg://caberos:caberos@db:5432/caberos

Bubblewrap needs SYS_ADMIN capability. The compose file sets cap_add: SYS_ADMIN. If your Docker setup blocks this, use privileged: true instead.

Change CABEROS_PORT in .env.docker or pass it inline:

Terminal window
CABEROS_PORT=3000 ./scripts/docker.sh up