How to use this image : Download the image from dockerhub . Clone or download all files from . Download moodle . tar . gz from . Extract moodle - xx . tar . gz to the following directory : . Run the command below : . 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 , in case you want to change the hostname / port , proceed to the next section to customize this image ) . In the Database settings , adjust the following : Customize this image Use domain with SSL and change Nginx configurations in the files downloaded from this In this directory , uncomment the lines in the and replace your domain with . Following the guides from ( 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 ) : . In case you want to configure your Nginx , you can find the config file in the following directory : Change mysql configurations Customize your configs in the following file : . Change the mysql environment variables in the docker - compose . yml file : Change php - fpm configurations Add your customized configurations in these files : Exposing external port Edit docker - compose . yml to change the exposed ports :