Skip to content

Dockerized Moodle Learning Management System

License

Notifications You must be signed in to change notification settings

sahansanathana/docker-moodle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/tiredofit/docker-moodle

GitHub release Build Status Docker Stars Docker Pulls Become a sponsor Paypal Donate

About

This will build a Docker Image for Moodle, a learning management system.

  • Automatically download latest version of Moodle if not installed
  • Install Database
  • Includes Moosh

Maintainer

Table of Contents

Prerequisites and Assumptions

  • Assumes you are using some sort of SSL terminating reverse proxy such as:

Installation

Build from Source

Clone this repository and build the image with docker build <arguments> (imagename) .

Prebuilt Images

Builds of the image are available on Docker Hub and is the recommended method of installation.

docker pull tiredofit/moodle:(imagetag)

The following image tags are available along with their tagged release based on what's written in the Changelog:

PHP version OS Tag
8.0.x Alpine :latest

Multi Architecture

Images are built primarily for amd64 architecture, and may also include builds for arm/v7, arm64 and others. These variants are all unsupported. Consider sponsoring my work so that I can work with various hardware. To see if this image supports multiple architecures, type docker manifest (image):(tag)

Configuration

Quick Start

Persistent Storage

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/www/moodle Root moodle Directory
/www/data Course and other Moodle Data seperate from installation files
/www/logs Nginx and php-fpm logfiles

Environment Variables

Base Images used

This image relies on an Alpine Linux base image that relies on an init system for added capabilities. Outgoing SMTP capabilities are handlded via msmtp. Individual container performance monitoring is performed by zabbix-agent. Additional tools include: bash,curl,less,logrotate,nano,vim.

Be sure to view the following repositories to understand all the customizable options:

Image Description
OS Base Customized Image based on Alpine Linux
Nginx Nginx webserver
PHP-FPM PHP Interpreter

Required Always

Parameter Description Default
CRON_PERIOD Time in minutes to be required to perform inernal maintenance tasks 15
DATA_PATH Moodle Data and Course related files /www/data/
DB_HOST MariaDB external container hostname (e.g. moodle-db)
DB_NAME MariaDB database name i.e. (e.g. moodle)
DB_USER MariaDB username for database (e.g. moodle)
DB_PASS MariaDB password for database (e.g. userpassword)
DB_PORT MariaDB Port 3306

First Insall Only

Parameter Description Default
MOODLE_VERSION Used to choose what Moodle Installation to install or Upgrade to Look in Dockerfile
ADMIN_EMAIL Email address for the Administrator
ADMIN_USER Username for the Administrator
ADMIN_PASS Password for the Administrator
ENABLE_REVERSE_PROXY Tweak nginx to run behind a reverse proxy for URLs TRUE / FALSE TRUE
LANGUAGE Site Lanaguage en
SITE_PORT What Port does moodle deliver assets to 80
SITE_NAME The title of the Website ``
SITE_SHORT_NAME The short name of site e.g. example ``
SITE_URL The Full site URL of the installation e.g. moodle.example.com

Networking

The following ports are exposed.

Port Description
80 HTTP

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is) bash

Support

These images were built to serve a specific need in a production environment and gradually have had more functionality added based on requests from the community.

Usage

  • The Discussions board is a great place for working with the community on tips and tricks of using this image.
  • Consider sponsoring me personalized support.

Bugfixes

  • Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.

Feature Requests

  • Feel free to submit a feature request, however there is no guarantee that it will be added, or at what timeline.
  • Consider sponsoring me regarding development of features.

Updates

  • Best effort to track upstream changes, More priority if I am actively using the image in a production environment.
  • Consider sponsoring me for up to date releases.

License

MIT. See LICENSE for more details.

Maintenance

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g. moodle) bash

References

About

Dockerized Moodle Learning Management System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%