- 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
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
# ConvertX-CN + Traefik 配置
|
|
# 適用於:使用 Traefik 作為反向代理
|
|
|
|
services:
|
|
convertx:
|
|
image: convertx/convertx-cn:latest
|
|
container_name: convertx-cn
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/app/data
|
|
environment:
|
|
- JWT_SECRET=${JWT_SECRET:?請設定 JWT_SECRET}
|
|
- TZ=Asia/Taipei
|
|
- HTTP_ALLOWED=false
|
|
- TRUST_PROXY=true
|
|
- ACCOUNT_REGISTRATION=false
|
|
labels:
|
|
- "traefik.enable=true"
|
|
# HTTP 路由
|
|
- "traefik.http.routers.convertx.rule=Host(`convertx.example.com`)"
|
|
- "traefik.http.routers.convertx.entrypoints=web"
|
|
- "traefik.http.routers.convertx.middlewares=https-redirect"
|
|
# HTTPS 路由
|
|
- "traefik.http.routers.convertx-secure.rule=Host(`convertx.example.com`)"
|
|
- "traefik.http.routers.convertx-secure.entrypoints=websecure"
|
|
- "traefik.http.routers.convertx-secure.tls=true"
|
|
- "traefik.http.routers.convertx-secure.tls.certresolver=letsencrypt"
|
|
# 服務
|
|
- "traefik.http.services.convertx.loadbalancer.server.port=3000"
|
|
# 中間件
|
|
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
|
|
networks:
|
|
- traefik-network
|
|
|
|
networks:
|
|
traefik-network:
|
|
external: true
|