Self-hosted online course & digital product platform with Stripe/PayPal/Lemon Squeezy payments
1.2K
Teach Copilot is a self-hosted, Docker-deployable platform for selling online courses and digital products. It is a full learning management system (LMS), digital storefront, and payment engine in a single Next.js application that you run on your own infrastructure — no monthly SaaS fees and no per-student platform cut.
Teach Copilot lets creators, coaches, agencies, and small businesses launch a course or digital-download storefront in minutes from one Docker image. It includes course curriculum management, drip-scheduled content, student progress tracking, a digital product library, an admin dashboard with revenue analytics, and a public enrollment and checkout funnel — fully self-hosted, so you keep your student data and 100% of your revenue.
docker run -d \
--name teachcopilot \
-p 3000:3000 \
-e DATABASE_URL="postgres://user:password@host:5432/dbname" \
-e AUTH_SECRET="$(openssl rand -base64 32)" \
-e AUTH_URL="https://your-domain.com" \
-e NEXT_PUBLIC_BASE_URL="https://your-domain.com" \
-e LICENSE_KEY="your-license-key" \
-e ENABLE_MIGRATIONS="true" \
dennisyin/teachcopilot:latest
Open https://your-domain.com/setup after the container starts to create your first admin account.
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: teachcopilot
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: teachcopilot
volumes:
- db-data:/var/lib/postgresql/data
app:
image: dennisyin/teachcopilot:latest
restart: unless-stopped
depends_on:
- db
environment:
DATABASE_URL: postgres://teachcopilot:${POSTGRES_PASSWORD}@db:5432/teachcopilot
AUTH_SECRET: ${AUTH_SECRET}
AUTH_URL: ${AUTH_URL}
NEXT_PUBLIC_BASE_URL: ${AUTH_URL}
LICENSE_KEY: ${LICENSE_KEY}
ENABLE_MIGRATIONS: "true"
ports:
- "3000:3000"
volumes:
db-data:
Run docker compose up -d, then visit /setup on first boot to create your admin account. Always pin production deployments to a specific version tag (for example dennisyin/teachcopilot:v1.5.7) rather than latest.
Teach Copilot runs on a free 30-day grace period without a license key. After the grace period, an active license key is required to keep the platform running without interruption. Each license supports up to 3 activations.
Purchase a license here: https://solopreneurhub.lemonsqueezy.com/checkout/buy/f8e08389-4f89-43bf-8ce6-5d4d4b36023b
After purchase, activate your key inside your running instance at /admin/settings/license.
Is Teach Copilot free? Teach Copilot runs on a free 30-day grace period with no license key required. After the grace period, a paid license key is required to continue running without interruption.
Do I need a separate database? Yes. Teach Copilot requires a PostgreSQL database — self-hosted, or a managed provider such as Neon, Supabase, or Amazon RDS.
Which payment providers does Teach Copilot support? Stripe, PayPal, Lemon Squeezy, and manual bank transfer are all supported out of the box, configurable from the admin settings panel.
Can I self-host Teach Copilot instead of using a hosted course-platform SaaS? Yes. Teach Copilot is built specifically to be self-hosted via Docker, so you retain full ownership of your student data, your infrastructure, and your revenue, with no recurring platform fees.
What environment variables are required to run the container?
At minimum: DATABASE_URL, AUTH_SECRET, AUTH_URL, NEXT_PUBLIC_BASE_URL, and LICENSE_KEY. Set ENABLE_MIGRATIONS=true on first boot to apply the database schema automatically.
How many times can I activate one license key? Each license key can be activated on up to 3 instances.
latest — most recent stable releasevX.Y.Z — pinned semantic version tags (recommended for production deployments)Content type
Image
Digest
sha256:ac0bd608a…
Size
93.2 MB
Last updated
about 1 month ago
docker pull dennisyin/teachcopilot