Features:
- Volume for the theme to get instant updates while editing
- Volume for the DB for persistant storage
- Composer for installing plugins
- Copy the .env.example to the
/config/local - Replace the salt vales in the
/wordpress/wp-config.php - Add required free plugins to the
/wordpress/composer.jsonfrom WPackagist - Add bought/unavailable plugins to the
/wordpress/wp-content/pluginsfolder and if the repo is private add them to the.gitignoreas an exception like so:
!/wordpress/wp-content/plugins/plugin-folder-name
- Replace the theme in the
/wordpress/wp-content/themes/your-themewith your theme, and update the rules in the.gitignoreso the theme is in your repo but the theme vendor folder is not - Run
docker compose upin the root of the project, first time will require a build of the containers so it will take a bit longer - (Optional) If you need to load in a DB, after the containers are both running you can conntect to localhost:3306 with the credentials in the
/config/local/.env
- Start docker on your local machine
- Run
docker compose upin the root of the project - Wordpress should be up and running on
localhost:80
- Hit
ctrl/cmnd + con the running containers to kill them - To clean them up run
docker compose down, this will remove the containers