-
export your database
-
copy your /moodle and /moodledata folders
-
run:
docker-compose up -d moodle_dband after a while:
docker-compose up -d
- To run, we need a database export, the /moodle files and /moodledata files. All of them should be from the same moodle instance.
-
your config.php should have:
$CFG->dbtype = 'mysqli'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'moodle_db'; $CFG->dbname = '<YOUR_MYSQL_DATABASENAME>'; $CFG->dbuser = '<YOUR_MYSQL_USERNAME>'; $CFG->dbpass = '<YOUR_MYSQL_PASSWORD>'; $CFG->prefix = 'mdl_'; $CFG->dataroot = '/bitnami/moodledata'; the port is set to 3310
- your folder/files should have r/w permissions for the containers