I find Lokl and interesting take, although the usual self-serve script is kind of annoying for power users (what I mean is that this bash scripts tried to do everything for you and it's less transparent), I recommend the repo [4] as the source of the actual Dockerfiles, that you could just reference in something like a docker-compose setup.
The Dockerfiles are kind of surprising since they read more like a an ansible-playbook than like a Dockerfile. This one image has it all - php, nginx, mariadb, phpmyadmin and who knows what else [4]. It's an interesting approach to Docker images, certainly against the recommendation but might have some good reasoning for something as special as WordPress.
[0]: https://github.com/leonstafford/lokl-cli
[1]: https://github.com/leonstafford
[2]: https://github.com/leonstafford/wp2static
[3]: https://github.com/leonstafford/lokl
[4]: https://github.com/leonstafford/lokl/blob/master/php8/Docker...