Docker WordPress MySQL phpMyAdmin stack

Start WordPress in docker with only 2 commands


You need to have docker and docker compose installed.
If you don't have them, see here first.

$ git clone   
$ cd docker-wordpress && docker-compose up 
You are ready!
Go to and start building your WordPress site.
Go to and play with PhpMyAdmin.
You credentials for phpMyAdmin is what you declared in docker-compose.yml
MYSQL_USER: wordpress
If you want to manually edit your files, first you have to change the permisions to html folder:
$ sudo chmod -R 777 html

You want to move or share your project?
Just share the entire folder. It has the source code in html folder and the full database with it in  mysql folder.

Have fun!