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