I tried to do a simple installation of Wordpress on Docker but ran into several problems with MariaSQL. They don't play nice! I'm adding this docker-compose.yml just in case it helps! (not sure where I got it from but thank you whoever you are!)
Cheers!