- Create 指定版本部署.md to explain fixed version deployment - Create 最新版.md detailing the use of the latest tag - Create 版本選擇指南.md to guide users on version selection - Add Nginx and Traefik configuration examples for reverse proxy - Introduce minimal and production configuration examples - Develop Docker deployment guide with detailed steps - Implement quick start guide for first-time Docker users - Include version update instructions and rollback procedures - Add troubleshooting section for common issues - Enhance overall documentation structure and links for better navigation
1.1 KiB
1.1 KiB
Docker Compose 範例與配置
本目錄提供各種場景的 Docker Compose 範例配置。
範例檔案
| 檔案 | 用途 | 說明 |
|---|---|---|
compose.minimal.yml |
快速啟動 | 最精簡配置 |
compose.production.yml |
生產環境 | 包含安全設定 |
compose.with-traefik.yml |
反向代理 | Traefik 整合 |
nginx.example.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