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
- download docker-compose-ready.yml file
- move to the folder which contains docker-compose-ready.yml
- run command to start moodle:
docker-compose -f docker-compose-ready.yml up -d
- run command to stop moodle:
docker-compose -f docker-compose-ready.yml stop
- delete environment:
docker-compose -f docker-compose-ready.yml down
- See if the docker containers running
docker ps
- view container log
docker logs {{container_id}}
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