We run this blog and many others as Docker containers. In this post you will learn how to accomplish that.
WordPress in Docker consists of three service containers: WordPress, phpMyAdmin and MariaDB. WordPress and MariaDB use local volumes to store persistence data, PMA and WP are both enhanced with uploads.ini injections to modify the default PHP settings. WP and PMA containers connect directly to the MariaDB container.
WordPress output is then passed through Apache 2.4 proxy with Cloudflare certificates (not part of the demo).