This is the starter code for a LAMP Stack. The docker-compose.yml file is missing and should be created. Please check the following sections for more details about how to get started and for instructions to build the docker-compose.yml file.
# Clone the project
git clone https://github.com/EdgeKing810/interns-docker-compose-lamp.git
cd interns-docker-compose-lamp/Please make sure that you have docker installed on your system before continuing.
- Rename the
.env.samplefile to.envand add the required variables. - Modify
bin/webserver/Dockerfileand resolve the comment on line 23. - Create the
docker-compose.ymlfile. - Add a service that uses
bin/webserver/Dockerfilenamed webserver, which maps the./webroot,./config/php/php.ini,./config/vhostsand./logs/apache2directories and files as volumes at the correct paths inside of the container. A port mapping should also be done that uses theHOST_MACHINE_HTTP_PORTvariable. - Add a service based on the
DB_SERVERvariable defined in the.envfile that does a port mapping based on theHOST_MACHINE_MYSQL_PORTvariable. The variables added during step 1 need to be added to this service. The./data/mysqland./logs/mysqldirectories should also be mapped as volumes at the correct paths inside of the container. - Add a final service for
phpmyadmin, which does a port mapping related to theHOST_MACHINE_PHPMYADMIN_PORTvariable and which uses the variables added during step 1. - Start the containers with the
docker compose upcommand, check the logs, check if the mounted volumes have been mapped correctly and troubleshoot if necessary. Fix any errors that might show up on the interfaces of services deployed.