Skip to content

oss-slu/moodle-docker-local

 
 

Repository files navigation

Moodle v3.9.25 Local Setup

Steps to install Moodle

  1. Create a docker network for MoodleDB and Moodle
docker network create moodle-network
  1. Setup Database (MariaDB) for Moodle within the network (PS - The following commands are only for Linux users)
docker run -d --name moodle-db \
--network moodle-network \
-e MYSQL_ROOT_PASSWORD=password \
-e MYSQL_DATABASE=moodle \
-e MYSQL_USER=moodle \
-e MYSQL_PASSWORD=password \
mariadb

Now, if you are using Windows - Then, Open docker-entrypoint.sh script in VS Code. In the bottom-right corner, you'll see an indicator saying CRLF or LF. Click on it, then select LF from the options that pop up. Save the file. Otherwise, you can skip this step if you are Linux user.

  1. Install Moodle Image to docker -
docker build --no-cache -t moodle .
  1. Run Moodle Container with Network -
docker run -d --name moodle \
--network moodle-network \
-e MOODLE_DB_HOST=moodle-db \
-e MOODLE_DB_NAME=moodle \
-e MOODLE_DB_USER=moodle \
-e MOODLE_DB_PASSWORD=password \
-p 8080:80 \
moodle

The Moodle instance will run on http://localhost:8080/ and the Default username and password for the Moodle Web App will - admin and password respectively.

The repository was cloned and modified from https://github.com/ubc/moodle-docker/tree/master. Review this repository for detailed documentation and implementation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 48.4%
  • PHP 35.9%
  • Dockerfile 15.7%