Production-ready Moodle 4.5.x Docker image with automatic updates. Maintained by Evomation.
3.6K
This repository builds a Docker image for Moodleā 4.5.x, based on the official source code from the Moodle GitHub repository.
It is intended for use in production and automated environments, and is maintained by Evomationā and published under the brandkernā Docker Hub organization by Evomation.
This image and documentation are provided "as is", without warranty of any kind. Use at your own risk. No liability or responsibility is accepted for correctness, completeness, or potential damage caused by the use of this software.
š§ Docker Hub: brandkern/moodleā
| Tag | Description |
|---|---|
4.5-latest | Always points to the latest v4.5.x release |
v4.5.3 (etc.) | Pinned to a specific Moodle release |
php:8.3-apacheā (Debian)v4.5.x Moodle release automaticallydocker run or docker-composedocker run -d -p 8080:80 \
-e DB_HOST=db \
-e DB_NAME=moodle \
-e DB_USER=moodleuser \
-e DB_PASS=secret \
-e WWWROOT=http://localhost:8080 \
-v $(pwd)/moodledata:/var/www/moodledata \
brandkern/moodle:4.5-latest
You need to provide a MariaDB (recommended version: 11.3) or MySQL container separately.
You find docker-compose.yml example in the compose subfolder in this project.
| Variable | Required | Description |
|---|---|---|
DB_HOST | ā | Hostname of the database |
DB_NAME | ā | Moodle database name |
DB_USER | ā | Database username |
DB_PASS | ā | Database password |
WWWROOT | ā | Public URL of your Moodle instance |
Moodle requires a background task runner to execute scheduled maintenance tasks such as sending emails, cleaning up sessions, and running plugin jobs.
This repository includes a dedicated moodle-cron container that automatically runs cron.php every 60 seconds.
To enable it, simply use the included docker-compose.ymlā setup. The cron container is already configured.
You can verify that it's running with:
docker-compose ps
And view its logs with:
docker logs -f moodle-cron
This image is automatically rebuilt using GitHub Actions when a new Moodle v4.5.x release is published.
The current version is stored in .latest-4.5-version and passed into the Docker build as MOODLE_TAG.
This image is built and maintained by
Michael Meese / Evomation
š www.evomation.deā
š Published on Docker Hub as brandkern/moodleā
This image uses official Moodle source code (GPLv3).
The Docker build files and automation are provided under the MIT license.
Content type
Image
Digest
sha256:20c58e55eā¦
Size
504.5 MB
Last updated
over 1 year ago
docker pull brandkern/moodle:v4.5.4