Edit

Self-Hosting LearnHouse

LearnHouse can be self-hosted on your own infrastructure using the LearnHouse CLI. The CLI handles everything from initial setup to ongoing maintenance, including Docker Compose generation, environment file management, service orchestration, backups, and health checks.

Quick Start

Make sure you have Docker with the Compose v2 plugin and Node.js 22+ installed (see Requirements), then run:

npx learnhouse@latest setup

The interactive setup wizard walks you through domain configuration, database settings, admin credentials, and optional features. At the end it offers to start LearnHouse and waits until it is ready. If you skipped that, start it with:

npx learnhouse start

LearnHouse is available at http://localhost (or your configured domain). Log in with the admin credentials you provided during setup. Quick Install covers the one-line installers, non-interactive setup and checks.

The CLI generates docker-compose.yml, .env, and reverse proxy configuration for you. You do not need to write or maintain these files manually.

Verify the installation

npx learnhouse doctor

Common management commands

npx learnhouse stop       # Stop all services
npx learnhouse start      # Start all services
npx learnhouse logs       # Stream container logs
npx learnhouse config     # View current configuration
npx learnhouse backup     # Back up the database, .env and uploaded content
npx learnhouse update     # Update to the latest version
npx learnhouse doctor     # Diagnose issues

Frequently asked questions

Can I self-host LearnHouse for free?

Yes. LearnHouse is an open-source LMS under the AGPL-3.0 license. The Community Edition is free to self-host; Enterprise features such as SSO, SCORM and LTI need an Enterprise Edition license.

What do I need to self-host LearnHouse?

A server with Docker and Compose v2, at least 2 GB of RAM (4 GB recommended), 10 GB of disk and one CPU core. See Requirements.

How do I install it?

Run npx learnhouse@latest setup on the server. The setup wizard writes the configuration and starts LearnHouse with Docker. See Quick Install.

Can I build on a self-hosted instance with the API and React components?

Yes. The REST API, @learnhouse/sdk, @learnhouse/react and @learnhouse/vue work with self-hosted instances the same way they work with LearnHouse Cloud. Point them at your own domain. See Developers.

Documentation

Installation

System requirements and quick install steps. Every CLI command and flag is in the CLI reference.

Configuration

Environment variables, AI features, email delivery, content storage, and SSL/domain setup.

Maintenance

Updates, backups, monitoring, and troubleshooting guides.