Skip to content

Moodle Docker 🐳 for Raspberry Pi. Part of OLE's Treehouses Project.

License

Notifications You must be signed in to change notification settings

treehouses/moodole

Repository files navigation

moodole

Build Status

Multiarchitecture Moodle Docker for Raspberry Pi

Supported architectures: amd64,arm,arm64

https://hub.docker.com/r/treehouses/moodle/

Moodle E Learning running on ARM with Raspberry Pi by Open Learning Exchange


How to use

  1. download docker-compose-ready.yml file
  2. move to the folder which contains docker-compose-ready.yml
  3. run command to start moodle:
docker-compose -f docker-compose-ready.yml up -d
  1. run command to stop moodle:
docker-compose -f docker-compose-ready.yml stop
  1. delete environment:
docker-compose -f docker-compose-ready.yml down
  1. See if the docker containers running
docker ps
  1. view container log
docker logs {{container_id}}

Different versions of docker-compose-ready.yml file

Note: For Raspberry Pi Zero only the alpine version will work.

For Ubuntu version:

version: '2'
services:
  moodledb:
    image: postgres
    container_name: moodledb
    environment:
    # MAKE SURE THIS ONE SAME WITH THE MOODLE
    - POSTGRES_DATABASE=moodle
    - POSTGRES_USER=moodle
    - POSTGRES_PASSWORD=moodle
  moodle:
    image: treehouses/moodle:latest
    container_name: moodle
    ports:
      - "80:80"
    environment:
    - NGINX_PORT=80
    - MOODOLE_DB_URL=moodledb
    - MOODOLE_DB_NAME=moodle
    - MOODOLE_DB_USER=moodle
    - MOODOLE_DB_PASS=moodle
    - MOODOLE_DB_PORT=5432
    - MOODOLE_MAX_BODY_SIZE=200M
    - MOODOLE_BODY_TIMEOUT=300s

For Alpine version:

version: '2'
services:
  moodledb:
    image: postgres
    container_name: moodledb
    environment:
    # MAKE SURE THIS ONE SAME WITH THE MOODLE
    - POSTGRES_DATABASE=moodle
    - POSTGRES_USER=moodle
    - POSTGRES_PASSWORD=moodle
  moodle:
    image: treehouses/moodle:alpine
    container_name: moodle
    ports:
      - "80:80"
    environment:
    - NGINX_PORT=80
    - MOODOLE_DB_URL=moodledb
    - MOODOLE_DB_NAME=moodle
    - MOODOLE_DB_USER=moodle
    - MOODOLE_DB_PASS=moodle
    - MOODOLE_DB_PORT=5432
    - MOODOLE_MAX_BODY_SIZE=200M
    - MOODOLE_BODY_TIMEOUT=300s