Skip to content

BMLN/moodle_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Migrating your current moodle installation to docker

  • export your database

  • copy your /moodle and /moodledata folders

  • run:

      docker-compose up -d moodle_db
    

    and after a while:

      docker-compose up -d
    

Make sure your external files match!

  • To run, we need a database export, the /moodle files and /moodledata files. All of them should be from the same moodle instance.

Make sure your configuration matches the image!

  • 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
    

Make sure the containers can use their volumes!

  • your folder/files should have r/w permissions for the containers

About

a docker-compose to migrate a moodle installation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •