Moodle on Railway
Open-source learning management system for courses, quizzes and gradebooks, self-hosted on Railway.
Moodle is an open-source learning management system used by schools, universities and companies to run courses, quizzes, assignments and gradebooks. It also supports SCORM packages, H5P activities and badges, and a large plugin ecosystem.
Moodle is a PHP application that needs a web server, a database, a data directory for uploaded files and a cron job that runs every minute for notifications, backups and grading. Self-hosting gives you control over branding, plugins and learner data.
Moodle is licensed under GPL-3.0-or-later.
What Moodle can do
- Courses, quizzes and assignments
- Gradebook and completion tracking
- SCORM and H5P content
- Badges and certificates
- Plugins and themes
- Per-minute cron for notifications and maintenance
What people use it for
- Online and blended courses for schools and training providers
- Employee onboarding and compliance training
- Self-paced courses with SCORM or H5P content
- Branded learning portals with data kept in-house
Videos
Running Moodle on Railway
On Railway, the Moodle template builds Moodle 5.3 LTS from the checksum-verified official release on PHP 8.4 with Apache, installs the site from the command line on first boot, and runs cron inside the same service because it needs the data directory. It deploys PostgreSQL 18, Redis 8.2 for sessions and cache, and a volume for moodledata. The template author measured about 0.4 GB RAM idle across all services; the Moodle service is the main consumer, and the volume grows with course files.
Moodle templates on Railway
Tracklayer templates are listed first. Other Moodle templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Moodle
How do I log in?
Enter your e-mail in MOODLE_ADMIN_EMAIL when deploying. The first boot installs Moodle and takes a few minutes. Then sign in as admin with MOODLE_ADMIN_PASSWORD from the Moodle service variables and change it.
How do I add plugins or themes?
Moodle's code is part of the image, so plugins go into the template repository under services/moodle/overlay/ and are deployed with a redeploy. The upgrade then runs automatically.
Can Moodle send e-mail?
Yes, through the MOODLE_SMTP_ variables. Outbound SMTP requires the Railway Pro plan.
How do I upgrade?
Change MOODLE_VERSION, MOODLE_BRANCH and MOODLE_SHA256 in services/moodle/Dockerfile, back up Postgres and the volume, then redeploy.
Can I scale it horizontally?
Moodle runs as a single service because of the moodledata volume, so scale it vertically and raise the Apache request limits.
Similar apps
Tracklayer maintains the templates marked as such; Moodle is a trademark of its owners and this site is not affiliated with them.