Files
easystream-main/QUICK_START.md
SamiAhmed7777 d22b3e1c0d feat: Add complete Docker deployment with web-based setup wizard
Major additions:
- Web-based setup wizard (setup.php, setup_wizard.php, setup-wizard.js)
- Production Docker configuration (docker-compose.prod.yml, .env.production)
- Database initialization SQL files (deploy/init_settings.sql)
- Template builder system with drag-and-drop UI
- Advanced features (OAuth, CDN, enhanced analytics, monetization)
- Comprehensive documentation (deployment guides, quick start, feature docs)
- Design system with accessibility and responsive layout
- Deployment automation scripts (deploy.ps1, generate-secrets.ps1)

Setup wizard allows customization of:
- Platform name and branding
- Domain configuration
- Membership tiers and pricing
- Admin credentials
- Feature toggles

Database includes 270+ tables for complete video streaming platform with
advanced features for analytics, moderation, template building, and monetization.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 01:42:31 -07:00

3.9 KiB

EasyStream - Quick Start Guide

🚀 Get Started in 3 Minutes

# Test configuration
.\deploy.ps1 -Mode test

# Deploy for development
.\deploy.ps1 -Mode dev

# Deploy for production (after configuring secrets)
.\deploy.ps1 -Mode prod

That's it! Access at http://localhost:8083


Option 2: Manual Deployment

Step 1: Start Services

docker-compose up -d

Step 2: Wait for Database (2-3 minutes)

docker-compose logs -f db

Wait until you see: "ready for connections"

Step 3: Access Application


📁 Folder Sync (Repos ↔ Docker-Progs)

One-Time Sync

.\sync-to-docker-progs.bat

Continuous Sync (Watch Mode)

.\sync-to-docker-progs.bat watch

This keeps E:\repos\easystream-main and E:\docker-progs\easystream-main in sync automatically.


🔑 Production Setup

1. Generate Secrets

.\generate-secrets.ps1

2. Configure Environment

copy .env.production .env
# Edit .env with your domain and settings

3. Deploy

.\deploy.ps1 -Mode prod

🛠️ Common Commands

View Logs

docker-compose logs -f          # All services
docker-compose logs -f php      # PHP only
docker-compose logs -f db       # Database only

Check Status

docker-compose ps
docker-compose top

Restart Service

docker-compose restart php
docker-compose restart caddy

Stop Everything

docker-compose down

Database Access

docker-compose exec db mysql -u easystream -peasystream easystream

Backup Database

docker-compose exec db mysqldump -u easystream -peasystream easystream | gzip > backup.sql.gz

🎥 Streaming Setup

RTMP URL (for OBS/Streaming Software)

Server: rtmp://localhost:1935/live
Stream Key: testkey

View Live Stream

HLS: http://localhost:8083/hls/testkey/index.m3u8

📊 What's Included

  • 270+ Database Tables - Full schema auto-loaded
  • Default Admin Account - Ready to use
  • 10 Categories - Pre-configured
  • Template Builder - 7 pre-built components
  • RTMP + HLS Streaming - Live streaming ready
  • Redis Caching - Performance optimized
  • Queue System - Background job processing
  • Cron Jobs - Automated tasks

🔍 Troubleshooting

Port Already in Use

# Change port in docker-compose.yml
ports:
  - "8084:80"  # Change 8083 to 8084

Database Not Ready

# Check health
docker-compose ps

# View initialization progress
docker-compose logs -f db

Upload Not Working

# Check permissions
docker-compose exec php ls -la /srv/easystream/f_data/uploads

# Fix if needed
docker-compose exec php chown -R www-data:www-data /srv/easystream/f_data

📚 Full Documentation


⚠️ Security Checklist

Before going to production:

  • Change default admin password
  • Generate secure secrets (.\generate-secrets.ps1)
  • Update .env with production values
  • Enable HTTPS/SSL
  • Change database password
  • Configure firewall rules
  • Set up backups
  • Review DOCKER_DEPLOYMENT_GUIDE.md

🆘 Need Help?

  1. Check logs: docker-compose logs -f
  2. Verify services: docker-compose ps
  3. Review: DOCKER_DEPLOYMENT_GUIDE.md
  4. Test configuration: .\deploy.ps1 -Mode test

Version: 2.0 | Last Updated: 2025-10-25