convertor/docs/範例配置/說明文件.md
Your Name a4489f4945 feat: add OCR language extension configuration and documentation
- Introduced `compose.ocr-languages.yml` for installing additional Tesseract OCR language packs during container startup.
- Updated documentation to include new OCR language extension options and usage scenarios.
- Enhanced existing documentation with references to the new OCR language extension guide.
- Improved test coverage for the deark converter and formats, ensuring accurate format handling and error management.
- Refactored code to streamline file system operations and improve readability.
2026-01-24 00:16:32 +08:00

55 lines
1.2 KiB
Markdown

# Docker Compose 範例與配置
本目錄提供各種場景的 Docker Compose 範例配置。
---
## 範例檔案
| 檔案 | 用途 | 說明 |
| --------------------------- | ------------ | ----------------- |
| `最小配置.yml` | 快速啟動 | 最精簡配置 |
| `生產環境配置.yml` | 生產環境 | 包含安全設定 |
| `compose.ocr-languages.yml` | OCR 語言擴展 | 安裝額外 OCR 語言 |
| `Traefik配置.yml` | 反向代理 | Traefik 整合 |
| `Nginx範例配置.conf` | Nginx 設定 | 反向代理設定範例 |
---
## 如何使用
### 1. 下載範例
```bash
# 下載最小配置
curl -O https://raw.githubusercontent.com/pi-docket/ConvertX-CN/main/docs/samples/compose.minimal.yml
# 重命名
mv compose.minimal.yml docker-compose.yml
```
### 2. 修改設定
```bash
# 編輯配置
nano docker-compose.yml
# 重點修改:
# - JWT_SECRET
# - TZ
```
### 3. 啟動
```bash
mkdir -p data
docker compose up -d
```
---
## 相關文件
- [Docker 部署](../部署指南/Docker部署.md)
- [環境變數](../配置設定/環境變數.md)
- [反向代理](../部署指南/反向代理.md)