Sooo. The fix was actually pretty easy for mariadb 10.6.0.
@Chartman123 lead me in the right direction.
Adding
command: --innodb-read-only-compressed=OFF
fixes the error. The other stuff that is in the offical docker-compose file isn’t needed for this to be fixed(Not really sure what that does anyway). Thanks for the help!