Files
LangBot/docs/en/deploy/langbot/docker.mdx
RockChinQandClaude Opus 5.5 18bb453a96 docs: add the lbctl management guide and point old manual paths to it (#3071)
- New page "Manage LangBot with lbctl" (zh/en/ja): what lbctl replaces,
  status/doctor, start/stop/logs, upgrade semantics, adopting an existing
  Docker Compose deployment, autostart, install options, multiple
  instances, uninstall and optional resource management.
- Update guide, Docker guide, troubleshooting and the one-line install
  page now point to lbctl first and keep the manual steps as fallback.
- Remove the official plugin source index note from the README Quick
  Start.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 20:07:42 +08:00

82 lines
3.9 KiB
Plaintext

---
title: "Docker Deployment"
description: "Deploy LangBot with Docker Compose on Windows, Linux, or macOS."
---
<Tip>
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](/en/deploy/lbctl#bring-an-existing-docker-compose-deployment-under-lbctl).
</Tip>
## 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:
```bash
git clone https://github.com/langbot-app/LangBot
cd LangBot/docker
```
### Mainland 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:
```text
docker.langbot.app/langbot-public/rockchin/langbot:latest
```
Save the file before starting. No other configuration changes are needed.
## 3. Start LangBot
<Note>
On a server, use a firewall to restrict dashboard and runtime ports to trusted sources only.
</Note>
In the same terminal, run:
```bash
docker compose --profile all up -d
```
The first startup downloads the container images. On Windows / macOS, keep Docker Desktop running.
<Note>
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.
</Note>
## 4. Open the dashboard
- **Local installation**: open `http://localhost:5300`.
- **Server installation**: open `http://YOUR_SERVER_IP:5300` and make sure the firewall allows your device to access this port.
Follow the on-screen initialization steps, then add a [model](/en/usage/models/readme) and a [bot](/en/usage/platforms/readme).
## Beta releases (optional)
To try a beta instead of the stable setup above, download the [dev/4.11.x Compose file](https://raw.githubusercontent.com/langbot-app/LangBot/dev/4.11.x/docker/docker-compose.yaml) 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:
```bash
docker compose --profile all pull
docker compose --profile all up -d
```
## Optional 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.