Sign inSign up

dickyasqaelani/moodle-casaos

By dickyasqaelani

Updated 5 months ago

Moodle LMS by Bitnami modfied by dickyasqaelani for casaos

Image
Content management system
Databases & storage
1

205

dickyasqaelani/moodle-casaos repository overview

Moodle Stack - Bitnami Legacy

Docker Pulls License

Overview

Moodle Stack adalah containerized deployment untuk Moodle Learning Management System (LMS) menggunakan image Bitnami Legacy dengan database MariaDB. Stack ini dirancang untuk kemudahan deployment, persistensi data, dan konfigurasi yang siap pakai untuk production atau development.

Features

  • Moodle 4.4 - Latest stable version
  • MariaDB 10.6 - Database backend yang handal
  • Persistent Volume - Data tersimpan aman meskipun container restart
  • Auto-restart - Container akan restart otomatis jika crash
  • Custom Network - Isolated network antara Moodle dan database
  • Ready-to-use - Konfigurasi environment yang sudah diset

Prerequisites

  • Docker Engine 20.10+
  • Docker Compose 2.0+
  • Minimal 2GB RAM (direkomendasikan 4GB)
  • Port 1250 dan 1260 tersedia

Quick Start

1. Docker pull atau download docker-compose.yml

menggunakan docker pull langsung (Recomended)

docker pull dickyasqaelani/moodle-casaos

Atau download manual dari repository ini.

curl -O https://raw.githubusercontent.com/dickybulin26/moodle-stack/main/docker-compose.yml
2. Jalankan stack
docker compose up -d
3. Akses Moodle

Buka browser dan akses:

http://localhost:1250
4. Login Credentials

⚠️ Segera ganti password setelah login pertama!

Configuration

Environment Variables
VariableDescriptionDefault Value
MOODLE_SITE_NAMENama situs MoodleMoodle
MOODLE_USERNAMEUsername adminadmin
MOODLE_PASSWORDPassword admin#Admin123
MOODLE_EMAILEmail admin[email protected]
Port Mapping
Host PortContainer PortService
12508080Moodle HTTP
12608443Moodle HTTPS
Data Persistence

Data tersimpan di Docker volumes:

moodle_mariadb_data    # Database files
moodle_moodle_data     # Moodle application files
moodle_moodledata_data # Moodle data (uploads, cache, etc.)

Volumes Management

Lihat volumes
docker volume ls | grep moodle
Backup volumes
docker run --rm -v moodle_mariadb_data:/data -v $(pwd):/backup alpine tar czf /backup/mariadb-backup.tar.gz /data
Restore volumes
docker run --rm -v moodle_mariadb_data:/data -v $(pwd):/backup alpine tar xzf /backup/mariadb-backup.tar.gz -C /

Monitoring & Logs

Lihat logs
docker compose logs -f
Cek status container
docker compose ps
Resource usage
docker stats moodle_app moodle_db

Troubleshooting

Permission Denied Error
# Hapus dan recreate volumes
docker compose down -v
docker compose up -d
Port Already in Use
# Ganti port di docker-compose.yml
ports:
  - "1251:8080"  # Ganti 1250 dengan port lain
  - "1261:8443"  # Ganti 1260 dengan port lain
Cannot Connect to Database
# Restart database terlebih dahulu
docker compose restart mariadb
sleep 10
docker compose restart moodle

Update Stack

# Pull latest images
docker compose pull

# Recreate containers with new images
docker compose up -d --force-recreate

Stop & Remove

Stop containers (tanpa hapus data)
docker compose stop
Stop dan hapus containers (data tetap ada)
docker compose down
Stop dan hapus semua (termasuk data)
docker compose down -v

Architecture

┌─────────────────────────────────────────────┐
│              Docker Network                 │
│              (moodle_net)                   │
│                                             │
│  ┌─────────────┐      ┌─────────────────┐   │
│  │   MariaDB   │◄────►│     Moodle      │   │
│  │   :3306     │      │  web:8080       │   │
│  └──────┬──────┘      └────────┬────────┘   │
│         │                      │            │
│         ▼                      ▼            │
│  ┌─────────────┐      ┌─────────────────┐   │
│  │   Volume    │      │    Volumes      │   │
│  │ mariadb_data│      │ moodle_data     │   │
│  └─────────────┘      │ moodledata_data │   │
│                       └─────────────────┘   │
└─────────────────────────────────────────────┘

Security Recommendations

  1. Ganti password default setelah login pertama
  2. Ganti environment variables untuk production:
    • MOODLE_PASSWORD
    • MARIADB_PASSWORD
    • MARIADB_ROOT_PASSWORD
  3. Gunakan HTTPS dengan reverse proxy (Nginx/Traefik)
  4. Backup secara rutin volumes database

Support

License

MIT License - see LICENSE file for details.

Credits


Tags Available

TagMoodle VersionMariaDB VersionDescription
latest4.410.6Stable latest version
4.44.410.6Specific version

Maintainer: Dicky
Last Updated: 2026-05-02

Tag summary

Content type

Image

Digest

sha256:d49906e0e

Size

34.7 MB

Last updated

5 months ago

docker pull dickyasqaelani/moodle-casaos