This makes local WordPress development easy by spinning up a website using WordPress, MySQL and PhpMyAdmin.
- Install docker in your system.
- Pull this repository.
- Edit
.env - Set the required values in
.env. Whatever you set in this file will be used to installmysqland setting up database for your website. - Execute
docker-compose up -dfrom a terminal inside the directory. - Open up your browser and hit http://localhost:8000.
- Proceed and complete installation.
- Your website is ready to be developed to its next awesome level.
WordPress and phpMyAdmin are set to be exposed at port 8000 and 8080 respectively in your local machine. You may change this if these ports are not free in your system.
If you are doing this for the first time, then it will take some time to pull the images from Docker Hub. Everything will be done in seconds when you will have the images for WordPress, MySQl and phpMyAdmin in your local machine.
docker-compose down to stop the container.
docker-compose build to rebuild the container.
See this for further reference on docker-compose, https://docs.docker.com/compose/reference/