I\'ve created a small docker-compose.yml which used to work like a charm to deploy small WordPress instances. It looks like this:
docker-compose.yml
wordpress: i
In my case, I'm using Mysql (not MariaDb) but I had the same problem. After upgrading the MySQL version, it's works fine.
You can see my open source docker-compose configuration: https://github.com/rimiti/wordpress-dockerized-environment