You can change the configuration of the docker images by setting various environment variables before calling bin/moodle-docker-compose up.
| Environment Variable | Mandatory | Allowed values | Default value | Notes |
|---|---|---|---|---|
MOODLE_DOCKER_DB | yes | pgsql, mariadb, mysql, mssql, oracle | none | The database server to run against |
MOODLE_DOCKER_WWWROOT | yes | path on your file system | none | The path to the Moodle codebase you intend to test |
MOODLE_DOCKER_PHP_VERSION | no | 7.4, 7.3, 7.2, 7.1, 7.0, 5.6 | 7.3 | The php version to use |
MOODLE_DOCKER_BROWSER | no | firefox, chrome | firefox | The browser to run Behat against |
MOODLE_DOCKER_PHPUNIT_EXTERNAL_SERVICES | no | any value | not set | If set, dependencies for memcached, redis, solr, and openldap are added |
MOODLE_DOCKER_WEB_HOST | no | any valid hostname | localhost | The hostname for web |
MOODLE_DOCKER_WEB_PORT | no | any integer value (or bind_ip:integer) | 127.0.0.1:8000 | The port number for web. If set to 0, no port is used. If you want to bind to any host IP different from the default 127.0.0.1, you can specify it with the bind_ip:port format (0.0.0.0 means bind to all) |
MOODLE_DOCKER_SELENIUM_VNC_PORT | no | any integer value (or bind_ip:integer) | not set | If set, the selenium node will expose a vnc session on the port specified. Similar to MOODLE_DOCKER_WEB_PORT, you can optionally define the host IP to bind to. If you just set the port, VNC binds to 127.0.0.1 |
MOODLE_DOCKER_APP_PATH | no | path on your file system | not set | If set and the chrome browser is selected, it will start an instance of the Moodle app from your local codebase |
MOODLE_DOCKER_APP_VERSION | no | a valid app docker image version | not set | If set will start an instance of the Moodle app if the chrome browser is selected |
MOODLE_DOCKER_APP_RUNTIME | no | 'ionic3' or 'ionic5' | not set | Set this to indicate the runtime being used in the Moodle app. In most cases, this can be ignored because the runtime is guessed automatically (except on Windows using the .cmd binary). In case you need to set it manually and you're not sure which one it is, versions 3.9.5 and later should be using Ionic 5. |
Content type
Image
Digest
Size
241.6 MB
Last updated
almost 5 years ago
docker pull hanzkid/moodle:3.11.4