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
- mod_customcert plugin
- tool_forcedcache plugin
MySQL/MariaDB 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 thesslproxy
setting in Moodle.DB_TYPE
- The type of database to use, currently eithermysqli
ormariadb
. 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.