-
On your local machine run this git command:
git clone https://github.com/ymnoor21/docker-moodle.git
-
CD into docker-moodle/ directory.
cd docker-moodle/
-
Build the image:
docker build -t moodle .
-
Create container and note the container id after running this command:
docker run -d -p 8080:8080 moodle
-
Replace the container id with:
docker exec -it <container id from step 2> /bin/bash
-
You will be taken to the container shell prompt. Now type the following command and press enter:
./init.sh
-
It will install all the necessary software and setup moodle environment.
-
After the installation finishes. Browse
http://localhost:8080/moodle/
-
You'll see moodle installation page. Press Next.
-
Change "Data directory" from
/var/www/moodledata
to /var/moodledata
-
Press Next.
-
Press Next.
-
Change settings if you need to:
a. Database host:
localhost
b. Database name:
moodle
c. Database user:
moodle
d. Database password:
moodle
e. Database port:
3306
-
Press Next.
-
Press Continue.
-
Press Continue.
-
The installer will run some scripts and will probably take couple of minutes to finish. So hang tight.
-
Press Continue.
-
Change Username to your name:
macgyver
(or whatever your name is) -
Now change the password by clicking on the link
Click to enter text
. I'd set it to something simple. Ex:Admin32!
. So please remember the username, password combination. -
Add Email Address to your school email. Ex:
somebody@someinstitude.edu
-
You can continue to fill out other empty boxes but they are not required fields. So I wouldn't bother.
-
So now Press
Update Profile
. -
Type
Full site name
,Short name for site
. Change Default Timezone toAmerica/Los_Angeles
. Change noreply address to your email address. Ex:somebody@someinstitude.edu
-
Press
Save Changes
. -
Congratulations. You're done installing moodle. You should be in admin panel now. Explore and Enjoy.