Sign inSign up

cateduac/moodle

By cateduac

•Updated 4 months ago

Image
Web servers
Content management system
0

1.9K

cateduac/moodle repository overview

⁠moodle-docker-production: Docker Containers for Moodle

This repository contains Docker configuration aimed to provide a good starting point to install moodle in production using docker.

In Catedu we need to deploy several hundreds of Moodle. This repo aims to give us a solution to test locally our developments and to generate our docker images. Our final solution is being implemented in moodle-docker-deploy repo⁠.

⁠Features

  • Database servers: MySQL / MariaDB /PostGreSQL (MySQL in this repo)
  • Last supported PHP version
  • Zero-configuration approach
  • All php-extensions (thanks to moodlehq⁠)

⁠Missing Features

These features are out of the scope of this repo (you may have a look at moodle-docker-deploy repo⁠):

  • Crontab configuration
  • Auto backup

⁠Prerequisites

⁠Quick start

cp env-sample .env
docker-compose up -d

Open browser webpage: http://localhost⁠ (be patient)

⁠Configuration

  • Configure your moodle installation using an .env file

  • We have two environments: production (https ready with letsencrypt) and development (default).

  • Plugins or special configuration is done using shell scripts or php files. The moodle container executes them from init-scripts directory. We provide an example script (plugins-sampe.sh) file, and moodle image has moosh binary⁠.

⁠Activate https

  • Using letsEncrypt⁠, activating production environment:

    cp docker-compose.override_prod.yml docker-compose.override.yml
    docker-compose up -d
    
  • Modify .env file

    MOODLE_URL=https://localhost
    SSL_PROXY=true
    

⁠Contributions

Are extremely welcome!

Tag summary

Content type

Image

Digest

sha256:6c0fa2938…

Size

832 MB

Last updated

4 months ago

docker pull cateduac/moodle:4.5.12-nginx-fpm-unoconv