Extract moodle-xx.tar.gz to the following directory:
/var/www/html/moodle
Run the command below :
docker-compose up -d
Open up your web browser, and proceed to the following address to start the installation ( Remember that my configuration will start the server at port 80, in case you want to change the hostname/port, proceed to the next section to customize this image )
127.0.0.1
In the Database settings, adjust the following :
Database host = mysql
Database name = moodle
Database user = moodle
Database password = 147258369
Tables prefix = mdl_
Database port = 3306
Unix socket = it's blank
In this directory, uncomment the lines in the moodle.conf and replace your domain with example.com
/nginx/conf.d/moodle.conf
Following the guides from Letsencrypt (certbot), copy the privkey.pem and fullchain.pem to the following directory. (Remember that from the previous step, the cert files names should correspond with these config file) :
/nginx/conf.d/certs
In case you want to configure your Nginx, you can find the config file in the following directory :