Self-host Moodle on a VPS
A widely used, highly customizable learning management system for online courses.
levelrail-cli templates deploy moodle --name my-moodleSpecification
- Status
- Listed
- Category
- Applications
- Services
- mariadb, moodle
- Ports
- 8080
- Volumes
- 3
- Memory
- about 1 GiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
About Moodle
A widely used, highly customizable learning management system for online courses. Runs 2 containers (mariadb, moodle), with moodle listening on port 8080; data is kept in named volumes.
What it deploys
Moodle runs as 2 services in a single Compose app, listening on port 8080, with 3 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| mariadb | mariadb | 11.1 | none | moodle_mariadb_data -> /var/lib/mysql |
| moodle | docker.io/bitnamilegacy/moodle | 4.3 | 8080 | moodle_data -> /bitnami/moodlemoodledata_data -> /bitnami/moodledata |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 8080 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 4 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| mariadb | MYSQL_DATABASE | Preset by the template |
| mariadb | MYSQL_PASSWORD | Generated at deploy |
| mariadb | MYSQL_ROOT_PASSWORD | Generated at deploy |
| mariadb | MYSQL_USER | Preset by the template |
| moodle | ALLOW_EMPTY_PASSWORD | Preset by the template |
| moodle | MOODLE_DATABASE_HOST | Preset by the template |
| moodle | MOODLE_DATABASE_NAME | Preset by the template |
| moodle | MOODLE_DATABASE_PASSWORD | Generated at deploy |
| moodle | MOODLE_DATABASE_PORT_NUMBER | Preset by the template |
| moodle | MOODLE_DATABASE_USER | Preset by the template |
| moodle | MOODLE_EMAIL | Preset by the template |
| moodle | MOODLE_PASSWORD | Generated at deploy |
| moodle | MOODLE_SITE_NAME | Preset by the template |
| moodle | MOODLE_USERNAME | Preset by the template |
Install Moodle on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get moodle -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy moodle --name my-moodle
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Moodle.
Docs and upstream
More in Applications
- Multi-ScrobblerScrobbles your listening history from sources like Spotify, Jellyfin, Plex and Navidrome to destinations like Last.fm, ListenBrainz and Maloja. MIT licensed. Add sources and clients through the web UI or the config files under the data volume.
- Mylar3An automated comic book downloader that watches your series, finds new issues through your indexers and download client, and renames them into a library. GPL-3.0 licensed. Open the web UI, then add your indexers and download client under Configuration.
- NextcloudSelf-hosted file sync, sharing, and collaboration, a full private alternative to consumer cloud drives.
- MediaWikiThe wiki engine behind Wikipedia, for large collaborative knowledge bases with rich version history.
- MaintainerrRule-based media library cleanup for Plex and Jellyfin that works with Sonarr, Radarr and Seerr. MIT licensed. On first open, add your media server and arr apps in settings, then build rules.
- OdooAn all-in-one business suite covering CRM, sales, inventory, accounting, and a website builder.