In this post, I will show you how its easy to setup the dockized development environment for WordPress.
- The very first step is to clone this repository https://github.com/iamsajidjaved/docker-compose-wordpress.
- Now go inside
docker-compose-wordpressdirectory and change thedocker-compose.ymlfile as per your needs. You may need to change thepasswordsandportsetc. - After finishing the configuration just run
docker-compose up. This command will first pull all the images from the dockerhub and then will create containers for you. - On the fourth step, you should create database for your WordPress project. Access
http://localhost:8081if you have not change the port. Enter theuser and passwordto login. Don't need to enter thehost. Keep thehostempty. 5. The fifth step is to access WordPress. Enterhttp://localhost:8000if you have not changed the port. You will see the WordPress installation page. - Finish the WordPress installation.
That's it!
Top comments (0)