Where to get help: GitHub Issues Page Oficial Moodle Documentaion
Maintained by: lucastercas
Dockerfile links
docker run$ docker run --rm -it -p 80:80 lucastercas/moodle:latest
This will start an instance of Moodle on port 80 of the host. However, as there is no database,
it will crash
docker-compose.ymlversion: "3.7"
services:
moodle:
image: lucastercas/moodle:v3.8.3
ports:
- "80:80"
environments:
DB_USER: db_user
DB_PASS: db_pass
DB_HOST: db
DB_DRIVER: pgsql
MOODLE_ADMINPASS: admin_pass
db:
image: postgres:13-alpine
environment:
POSTGRES_USER: db_pass
POSTGRES_PASSWORD: db_user
POSTGRES_DB: moodle
$ docker-compose up
When you start this moodle image, you have to provide certain environment variables, so it knows where the database is located, as well as certain Moodle parameters.
MOODLE_ADMINUSER: Optional variable, sets the login to use for the administrator account, default is admin_user.MOODLE_ADMINPASS: Password for the administrator account, there is no default.MOODLE_ADMINMAIL: Optional variable, sets the email of the administrator user, default is [email protected].MOODLE_NAME: Optional variable, sets the name of the Moodle instance, default is moodle.MOODLE_WWWROOT: Optional variable, location of the web site, default is http://localhost.MOODLE_DIR: Optional variable, location of Moodle, default is /var/www/html.MOODLE_DATADIR: Optional variables, location of moodledata, default is /var/www/moodledata.DB_HOST: Host of the database.DB_USER: User of database.DB_PASS: Password of DB_USER.DB_NAME: Optional variable, name of database that this instance of Moodle will use, default is moodle.DB_DRIVER: Type of driver, it can be pgsql, mariadb, mysqli, sqlsrv or oci, according to the Moodle documentation. Depends on the type of the database on DB_HOSTContent type
Image
Digest
Size
146.8 MB
Last updated
about 6 years ago
docker pull lucastercas/moodle