convertor/compose.yaml
Your Name 569c572e62 fix(ci): resolve all lint errors for GitHub Actions
- Remove unused SupportedLocale import in results.tsx
- Remove unused webroot variable in public/i18n.js
- Configure knip.json to ignore i18n public API exports
- Add language-selector and language-option to ESLint ignore list
- Auto-fix Prettier formatting across all files
- Fix better-tailwindcss line wrapping issues
2026-01-20 12:16:13 +08:00

44 lines
1.8 KiB
YAML
Raw 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.

# ==============================================================================
# ConvertX-CN 部署範例docker-compose.yml / compose.yaml
#
# 🎉 這是完整版 image已內建所有轉換依賴
# - LibreOffice (headless)
# - TexLive Full
# - Tesseract OCR + 中日韓英德語言包
# - CJK 字型Noto CJK、微軟核心字型、標楷體
# - Pandoc、FFmpeg、ImageMagick 等所有轉換器
#
# ✅ 使用者不需要自己寫 Dockerfile
# ✅ 直接 docker compose up -d 即可使用
# ==============================================================================
services:
convertx:
image: convertx/convertx-cn:latest
container_name: convertx-cn
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
# === 帳號設定 ===
- ACCOUNT_REGISTRATION=false # 是否允許註冊新帳號(首次帳號不受此限制)
- JWT_SECRET=請更換為一個長且隨機的字串 # 若不設定則使用 randomUUID()
# === 安全設定 ===
- HTTP_ALLOWED=false # 是否允許非 HTTPS 連線(僅本地測試時設為 true
- ALLOW_UNAUTHENTICATED=false # 是否允許未登入使用(僅本地測試時設為 true
# === 檔案管理 ===
- AUTO_DELETE_EVERY_N_HOURS=24 # 自動刪除超過 N 小時的檔案0 = 停用)
# === 時區設定 ===
- TZ=Asia/Taipei
# === 可選設定 ===
# - WEBROOT=/convertx # 子路徑部署(例如 example.com/convertx/
# - HIDE_HISTORY=true # 隱藏歷史紀錄頁面
# - LANGUAGE=zh-TW # 日期格式語言
# - FFMPEG_ARGS=-hwaccel vaapi # FFmpeg 硬體加速參數
# - MAX_CONVERT_PROCESS=4 # 最大同時轉換數0 = 無限制)