A simple docker setup for Wordpress local development with :
- PHP 8.2
- Xdebug 3
- OPcache
- Mysql 8.0
- Phpmyadmin
- Mailpit
- Rename the wordpress config file for local development
mv ./wordpress/wp-config-local.php ./wordpress/wp-config.php
-
Download and copy your wordpress files into the
./wordpress
directory -
Build and run
docker compose up -d --build
- Go to localhost for wordpress
- Go to localhost:8080 for phpmyadmin
- Go to localhost:8025 for mailpit