Docker Deployment
Deploy LangBot with Docker Compose on Windows, Linux, or macOS.
Easier option: choose Docker in the one-line installer (curl -fsSL https://langbot.app/install.sh | bash -s -- --driver docker). lbctl generates the Compose configuration, picks a working image source and takes care of upgrades, logs and autostart afterwards. Deployments set up with this guide can also be brought under lbctl.
1. Prepare your environment
- Install Git.
- Windows / macOS: install and start Docker Desktop.
- Linux: install Docker and Docker Compose.
2. Download the project
Choose a regular directory that you can write to. On Linux, avoid system directories such as /root and /etc; we recommend a location under /opt so sandbox features are not blocked by security rules.
Open a terminal in the directory where you want to store the project (PowerShell works on Windows), then run each line:
git clone https://github.com/langbot-app/LangBot
cd LangBot/dockerMainland China: change the image source before startup (optional)
If Docker Hub downloads are slow, edit LangBot/docker/docker-compose.yaml first. Replace every occurrence of rockchin/langbot:latest with:
docker.langbot.app/langbot-public/rockchin/langbot:latestSave the file before starting. No other configuration changes are needed.
3. Start LangBot
On a server, use a firewall to restrict dashboard and runtime ports to trusted sources only.
In the same terminal, run:
docker compose --profile all up -dThe first startup downloads the container images. On Windows / macOS, keep Docker Desktop running.
The official Docker images come pre-equipped with minimal ffmpeg and pilk audio tools. Native voice transcoding (including SILK for WeChat) is supported out-of-the-box without extra host configuration.
4. Open the dashboard
- Local installation: open
http://localhost:5300. - Server installation: open
http://YOUR_SERVER_IP:5300and make sure the firewall allows your device to access this port.
Follow the on-screen initialization steps, then add a model and a bot.
Beta releases (optional)
To try a beta instead of the stable setup above, download the dev/4.11.x Compose file as compose.yaml in a separate writable directory. Manually change every rockchin/langbot image to rockchin/langbot:beta: Core (langbot), plugin runtime (langbot_plugin_runtime), and Box (langbot_box, when present). The beta tag is updated with every beta release. From that directory, start or update with:
docker compose --profile all pull
docker compose --profile all up -dOptional vector store images (optional)
To keep downloads small, the default image only ships Chroma, Qdrant and pgvector support. To use SeekDB (including the "seekdb-built-in" embedding model), Milvus or Valkey Search, change only the langbot service in docker-compose.yaml to the image tag with the matching suffix; the plugin runtime and Box stay unchanged:
| Vector store | Stable | Specific version | Beta |
|---|---|---|---|
| SeekDB | rockchin/langbot:latest-seekdb | rockchin/langbot:vX.Y.Z-seekdb | rockchin/langbot:beta-seekdb |
| Milvus | rockchin/langbot:latest-milvus | rockchin/langbot:vX.Y.Z-milvus | rockchin/langbot:beta-milvus |
| Valkey Search | rockchin/langbot:latest-valkey | rockchin/langbot:vX.Y.Z-valkey | rockchin/langbot:beta-valkey |
The mainland China mirror serves the same tags, such as docker.langbot.app/langbot-public/rockchin/langbot:latest-seekdb. Every release publishes the default image together with all of these variants. After the change, run pull and up -d again as above.
