Skip to content
API Blog

Docker

Docker mode is the easiest way to run Lobu on a single machine.

Pre-built images are published to GitHub Container Registry on every push to main:

ImageDescription
ghcr.io/lobu-ai/lobu-gatewayGateway server
ghcr.io/lobu-ai/lobu-worker-baseWorker base image
Terminal window
docker pull ghcr.io/lobu-ai/lobu-gateway:latest
docker pull ghcr.io/lobu-ai/lobu-worker-base:latest

Tags follow the pattern latest, <version>, and main-<sha>.

  1. docker compose starts gateway + Redis.
  2. Gateway creates per-session worker containers on demand using the worker image.
  3. Each worker gets an isolated workspace directory (for example ./workspaces/{threadId}/).
  4. Worker network access goes through the gateway proxy (HTTP_PROXY=http://gateway:8118).

Lobu’s Docker deployment uses two Docker networks:

  • Public network for gateway ingress
  • Internal network for worker-to-gateway traffic

Workers are attached to the internal network with no direct external route. External HTTP traffic is controlled by the gateway proxy and domain policy (WORKER_ALLOWED_DOMAINS / WORKER_DISALLOWED_DOMAINS).

Use Docker mode when:

  • You are getting started quickly
  • You run a single-node production deployment
  • You want simple operations without Kubernetes
  • Start stack: npx @lobu/cli@latest run -d or docker compose up -d
  • Restart after .env changes
  • Session persistence is provided by mounted workspace directories