How abubakarafghan/moodle-docker-setup works
This repository packages a local Moodle deployment rather than implementing Moodle itself. The user starts the Compose services; on first startup the Moodle entrypoint waits for MariaDB, runs Moodle’s CLI installer, and then starts Apache. Later starts reuse the existing configuration. The README also documents persistent database and Moodle data, configured through environment variables. Source excerpts were unavailable, so relationships below rely on README statements; container wiring and storage mounts are shown only where documented.
Main entry points: docker-compose.yml Compose services · docker-entrypoint.sh Startup entrypoint · Dockerfile Apache server · .env.example Environment settings
Components 12
Local orchestration
- Compose services
docker-compose.yml
Moodle runtime
- Moodle container
Dockerfile - Startup entrypoint
scripts/docker-entrypoint.sh - Database readiness
scripts/docker-entrypoint.sh - Moodle installer
scripts/docker-entrypoint.sh - Apache server
Dockerfile
Configuration and data
- MariaDB
docker-compose.yml - Database files
docker-compose.yml - Moodle data
docker-compose.yml - Environment settings
.env.example
Other components
- Operator
- Browser
Connections 12
- Operator → Compose services: starts services
README.md - Compose services → Moodle container: starts
README.md - Compose services → MariaDB: starts
README.md - Environment settings → Startup entrypoint: configures
README.md - Startup entrypoint → Database readiness: waits for
README.md - Database readiness → MariaDB: checks readiness
README.md - Startup entrypoint → Moodle installer: runs on first start
README.md - Moodle installer → MariaDB: installs into
README.md - Startup entrypoint → Apache server: starts
README.md - Browser → Apache server: opens Moodle
README.md - Compose services → Database files: persists database
README.md - Compose services → Moodle data: persists Moodle data
README.md