mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-10-29 03:36:15 +08:00
- 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
92 lines
2.1 KiB
Markdown
92 lines
2.1 KiB
Markdown
# 使用 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
|
||
```
|
||
|
||
### 方式一:自定义 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` 文件中。
|
||
|
||
### 方式二:下载 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
|
||
```
|