b8e1eaab17
✅ Cloudflare Pages Fixes: - Fix IPTV page Suspense boundary issue for static generation - Resolve ESLint warnings (unused imports, console statements) - Remove dependency on useSearchParams for static builds - Improve error handling without console.error 🐳 Docker Support Restored: - Add complete Docker configuration (Dockerfile, docker-compose.yml) - Support both basic (localstorage) and Redis deployment modes - Multi-platform builds (amd64/arm64) via GitHub Actions - Production-ready with health checks and proper security 📚 Documentation Updates: - Comprehensive deployment guide for all platforms - Docker quick start and production examples - Environment variable documentation - Updated README with multi-platform support 🎯 Key Improvements: - Multiple deployment options: Cloudflare + Docker + Vercel - Better error boundaries and loading states - Optimized build processes for each platform - Enhanced developer experience This fixes the Cloudflare Pages deployment while providing Docker as an alternative self-hosting option.
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# 基础版本 - 使用本地存储
|
|
katelyatv-basic:
|
|
build: .
|
|
container_name: katelyatv-basic
|
|
restart: unless-stopped
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- PASSWORD=your_password
|
|
- NEXT_PUBLIC_SITE_NAME=KatelyaTV
|
|
# 如需自定义配置,可挂载文件
|
|
# volumes:
|
|
# - ./config.json:/app/config.json:ro
|
|
profiles:
|
|
- basic
|
|
|
|
# Redis版本 - 推荐用于生产环境
|
|
katelyatv:
|
|
build: .
|
|
container_name: katelyatv
|
|
restart: unless-stopped
|
|
ports:
|
|
- '3000:3000'
|
|
environment:
|
|
- USERNAME=admin
|
|
- PASSWORD=admin_password
|
|
- NEXT_PUBLIC_STORAGE_TYPE=redis
|
|
- REDIS_URL=redis://katelyatv-redis:6379
|
|
- NEXT_PUBLIC_ENABLE_REGISTER=true
|
|
- NEXT_PUBLIC_SITE_NAME=KatelyaTV
|
|
networks:
|
|
- katelyatv-network
|
|
depends_on:
|
|
- katelyatv-redis
|
|
# 如需自定义配置,可挂载文件
|
|
# volumes:
|
|
# - ./config.json:/app/config.json:ro
|
|
profiles:
|
|
- redis
|
|
|
|
katelyatv-redis:
|
|
image: redis:7-alpine
|
|
container_name: katelyatv-redis
|
|
restart: unless-stopped
|
|
command: redis-server --appendonly yes
|
|
networks:
|
|
- katelyatv-network
|
|
volumes:
|
|
- redis-data:/data
|
|
profiles:
|
|
- redis
|
|
|
|
networks:
|
|
katelyatv-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
redis-data: |