A production‑ready Docker Compose example for a fast, cache‑friendly WordPress stack with Nginx FastCGI cache, PHP‑FPM tuning, OPcache, Redis object cache, and a tuned MariaDB configuration. Includes a hardened Nginx config.
-
Fill the 8 WordPress salts/keys in wp-config.php with strong random values.
-
Start the stack
docker compose up -d- Finish installation of WordPress: http://localhost:8080/
Install the plugin "Redis Object Cache" to activate Redis support.
This setup has a site running WooCommerce in mind. Just install the plugin "WooCommerce".
To generate sample data you can use the plugin "FakerPress".
- Download XML-file from https://github.com/wpaccessibility/a11y-theme-unit-test
- Import via Tools / Import / WordPress
- Download CSV-file from https://glover.us/blog/woocommerce-sample-data-set/
- Import via Product / Import