Files
Auto_Bangumi/docs/ja/deploy/docker-compose.md
Estrella Pan 37fa6b4ea5 fix: RSS matching, proxy pool, parser, healthcheck and log issues (#1103 #1104 #1105 #1106 #1108 #1114 #1117)
- match_bangumi_in_list: also accept a torrent whose rebuilt title equals
  the stored title_raw (#1103, #1114)
- download_bangumi / collect_season: drop items whose season or type
  conflicts with the bangumi (#1105)
- request_url: swap in a fresh shared client on PoolTimeout without
  closing the old one (#1104)
- classic parser: Unicode Roman numeral season, strip fullwidth dash
  wrapper (#1108)
- Docker HEALTHCHECK: healthcheck.py reads the configured WebUI port and
  probes IPv4 then IPv6 loopback (#1106)
- scheduler: non-positive interval falls back to 1s; deploy docs cap
  container logs at 10 MB x 3 (#1117)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KU9GqKzULrNb7MN5T9TYix
2026-09-19 17:58:17 +02:00

92 lines
2.6 KiB
Markdown
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.
# Docker Composeでデプロイ
`docker-compose.yml`ファイルを使用した**AutoBangumi**のワンクリックデプロイ方法です。
## Docker Composeのインストール
Docker Composeは通常Dockerにバンドルされています。以下で確認してください:
```bash
docker compose -v
```
インストールされていない場合は、以下でインストールしてください:
```bash
$ sudo apt-get update
$ sudo apt-get install docker-compose-plugin
```
## **AutoBangumi**のデプロイ
### AutoBangumiとデータディレクトリの作成
```bash
mkdir -p ${HOME}/AutoBangumi/{config,data}
cd ${HOME}/AutoBangumi
```
### オプション1:カスタムDocker Compose設定
```yaml
version: "3.8"
services:
AutoBangumi:
image: "ghcr.io/estrellaxd/auto_bangumi:latest"
container_name: AutoBangumi
volumes:
- ./config:/app/config
- ./data:/app/data
ports:
- "7892:7892"
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
dns:
- 8.8.8.8
network_mode: bridge
environment:
- TZ=Asia/Shanghai
- PGID=$(id -g)
- PUID=$(id -u)
- UMASK=022
```
上記の内容を`docker-compose.yml`ファイルにコピーしてください。
### オプション2:Docker Compose設定ファイルのダウンロード
`docker-compose.yml`ファイルを手動で作成したくない場合、プロジェクトでは事前に作成された設定を提供しています:
- **AutoBangumi**のみをインストール:
```bash
wget https://raw.githubusercontent.com/EstrellaXD/Auto_Bangumi/main/docs/resource/docker-compose/AutoBangumi/docker-compose.yml
```
- **qBittorrent**と**AutoBangumi**をインストール:
```bash
wget https://raw.githubusercontent.com/EstrellaXD/Auto_Bangumi/main/docs/resource/docker-compose/qBittorrent+AutoBangumi/docker-compose.yml
```
インストール方法を選択し、コマンドを実行して`docker-compose.yml`ファイルをダウンロードしてください。必要に応じてテキストエディタでパラメータをカスタマイズできます。
### 環境変数の定義
ダウンロードしたAB+QB Docker Composeファイルを使用している場合は、以下の環境変数を定義する必要があります:
```shell
export \
QB_PORT=<YOUR_PORT>
```
- `QB_PORT`:既存のqBittorrentポートまたは希望するカスタムポートを入力します。例:`8080`
### Docker Composeの起動
```bash
docker compose up -d
```