Files
LangBot/docs/ja/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

78 lines
4.9 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Dockerデプロイ"
description: "Windows、Linux、macOS で Docker Compose を使って LangBot を起動します。"
---
<Tip>
より簡単な方法:ワンラインインストールで Docker を選びます(`curl -fsSL https://langbot.app/install.sh | bash -s -- --driver docker`)。lbctl が Compose 設定を生成し、利用可能なイメージソースを選び、その後のアップグレード、ログ、自動起動も管理します。このページの手順でデプロイしたインスタンスも [lbctl に移行](/ja/deploy/lbctl#既存の-docker-compose-デプロイを-lbctl-に移行する)できます。
</Tip>
## 1. 環境を準備する
- Git をインストールします。
- **Windows / macOS**:Docker Desktop をインストールして起動します。
- **Linux**:Docker と Docker Compose をインストールします。
## 2. プロジェクトをダウンロードする
書き込み権限のある通常のディレクトリを選んでください。Linux では `/root` や `/etc` などのシステムディレクトリを避け、`/opt` 配下を推奨します。これにより、安全規則によるサンドボックス機能の拒否を避けられます。
プロジェクトを保存したいディレクトリでターミナルを開き(Windows では PowerShell を使用できます)、1 行ずつ実行します:
```bash
git clone https://github.com/langbot-app/LangBot
cd LangBot/docker
```
### 中国本土:起動前にミラーへ変更する(任意)
Docker Hub からのダウンロードが遅い場合は、先に `LangBot/docker/docker-compose.yaml` を編集し、すべての `rockchin/langbot:latest` を次の値に置き換えてください:
```text
docker.langbot.app/langbot-public/rockchin/langbot:latest
```
保存してから起動してください。ほかの設定変更は不要です。
## 3. LangBot を起動する
<Note>
サーバーに設置する場合は、管理画面とランタイムのポートをファイアウォールで制限し、信頼できる接続元だけを許可してください。
</Note>
同じターミナルで実行します:
```bash
docker compose --profile all up -d
```
初回はコンテナイメージをダウンロードします。Windows / macOS では Docker Desktop を起動したままにしてください。
## 4. 管理画面を開く
- **ローカルにインストールした場合**:`http://localhost:5300` を開きます。
- **サーバーにインストールした場合**:`http://サーバーのIP:5300` を開きます。ファイアウォールで自分の端末からこのポートへのアクセスを許可してください。
画面の案内に従って初期設定を完了し、[モデル](/ja/usage/models/readme)と[ボット](/ja/usage/platforms/readme)を追加してください。
## Beta 版(任意)
上記の安定版の代わりに Beta を試す場合は、[dev/4.11.x の Compose ファイル](https://raw.githubusercontent.com/langbot-app/LangBot/dev/4.11.x/docker/docker-compose.yaml)を別の書き込み可能なディレクトリに `compose.yaml` として保存します。**すべての** `rockchin/langbot` イメージを手動で `rockchin/langbot:beta` に変更してください。対象は Core(`langbot`)、プラグインランタイム(`langbot_plugin_runtime`)、Box(`langbot_box` がある場合)です。`beta` タグは Beta リリースごとに更新されます。そのディレクトリで次を実行して起動・更新します:
```bash
docker compose --profile all pull
docker compose --profile all up -d
```
## オプションのベクトルストア版イメージ(任意)
ダウンロードサイズを抑えるため、デフォルトイメージには Chroma、Qdrant、pgvector のサポートだけが含まれます。SeekDB(「seekdb-内蔵」埋め込みモデルを含む)、Milvus、Valkey Search を使う場合は、`docker-compose.yaml` の `langbot` サービスのイメージだけを対応するサフィックス付きのタグに変更してください。プラグインランタイムと Box はそのままで構いません:
| ベクトルストア | 安定版 | バージョン指定 | 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` |
中国本土向けミラーでも同じタグ(例:`docker.langbot.app/langbot-public/rockchin/langbot:latest-seekdb`)を利用できます。リリースごとに、デフォルトイメージとこれらの版が同時に公開されます。変更後は上記と同じ手順で `pull` と `up -d` を再実行してください。