Example Docker Compose FIle For Wordpress, MySQL & phpmyadmin. This docker-compose.yaml file is ready to runto use to install worldpress in your local machine in just one minute.

One file one minute to get your wordpress environment ready in Windows, Linux, Mac

WordPress development using Docker is much more easier and convenient. Heres are few things that you would like about Docker.

  1. You don't have to go though installing mysql, php, database driver etc everytime you want to clean install in any environment
  2. Docker creates isolated development environments. Meaning you can choose different stack and versions for your different project.
  3. Use docker volume to mount your important wordpress files and configuration. Meaning you don't have to worry about the system files rather your own configuration and contents. Next time you want to setup the same configs, you don't have to repeat yourself.

Running wordpress using this docker-compose file

# build
docker-compose build

# run
docker-compose up

# run in background
docker-compose up -d

# build and run in background
docker-compose up -d --build

Your application will be available at :

# Wordpress App
http://localhost:8000

# PHPMyAdmin
http://localhost:8080