Skip to main content

Moodle

Moodle is a free and open-source learning management system written in PHP and distributed under the GNU General Public License. Moodle is used for blended learning, distance education, flipped classroom and other online learning projects in schools, universities, workplaces and other sectors.

version: '2'
services:
  mariadb:
    image: mariadb
    volumes:
      - /srv/path/Files/Moodle/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=pass
      - MYSQL_ROOT_USER=root
      - MYSQL_DATABASE=moodle
      
  moodle:
    image: bitnami/moodle:latest
    ports:
      - 7080:8080
      - 7443:8443
    environment:
      - MOODLE_DATABASE_HOST=mariadb
      - MOODLE_DATABASE_USER=root
      - MOODLE_DATABASE_PASSWORD=pass
      - MOODLE_DATABASE_NAME=moodle
      - PUID=998
      - PGID=100
    volumes:
      - /srv/path/Files/Moodle/confg:/bitnami/moodle
      - /srv/path/Files/Moodle/data:/bitnami/moodledata
    depends_on:
      - mariadb
    links:
      - mariadb:mariadb

default user: user
default password: bitnami