This is a somewhat opinionated Docker image for running Moodle, currently used by VATSIM. It is based on the official PHP+Apache image and includes the following:
- Moodle and its required PHP extensions
- atto_morefontcolors plugin
- availability_coursecompleted plugin
- enrol_coursecompleted plugin
- local_booking plugin
- local_vatsim plugin
- mod_customcert plugin
- mod_hvp plugin
- theme_klassroom theme
- tool_forcedcache plugin
A database (MySQL/MariaDB/PostgreSQL) and Redis are required to run this image. You'll also need to configure some way of running Moodle's cron job, such as a cron container or a Kubernetes CronJob.
WWW_ROOT- The URL of the Moodle instance, used for generating links in emails and other places. Defaults tohttp://localhost.SSL_PROXY- The presence of this environment variable will enable thesslproxysetting in Moodle.DB_TYPE- The type of database to use,mysqli,mariadb, orpgsql. Defaults tomysqli.DB_HOST- The hostname of the database server. Defaults to127.0.0.1.DB_PORT- The port of the database server. Defaults to3306.DB_DATABASE- The name of the database to use. Defaults tomoodle.DB_USERNAME- The username to use when connecting to the database. Defaults tomoodle.DB_PASSWORD- The password to use when connecting to the database. Defaults to an empty string.REDIS_HOST- The hostname of the Redis server. Defaults to127.0.0.1.REDIS_PORT- The port of the Redis server. Defaults to6379.REDIS_PASSWORD- The password to use when connecting to the Redis server. Defaults to an empty string.DATA_ROOT- The path to the Moodle data directory. Defaults to an empty string.UPGRADE_KEY- The upgrade key to use when upgrading Moodle. Defaults to null, thus disabling the feature.