Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/treehouses/moodole

Moodle Docker :whale: for Raspberry Pi. Part of OLE's Treehouses Project.
https://github.com/treehouses/moodole

arm docker learning-management-system moodle moodle-docker open-learning-exchange raspberry-pi treehouses

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# moodole

[![Build Status](https://travis-ci.org/treehouses/moodole.svg?branch=master)](https://travis-ci.org/treehouses/moodole)

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:
```shell
docker-compose -f docker-compose-ready.yml up -d
```
4. run command to stop moodle:
```shell
docker-compose -f docker-compose-ready.yml stop
```
5. delete environment:
```shell
docker-compose -f docker-compose-ready.yml down
```
6. See if the docker containers running
```shell
docker ps
```
7. view container log
```shell
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:**

```dockerfile
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:**

```dockerfile
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
```

---