[SOLVED] How to deal with mysql version(s) for different TYPO3 versions hosted on the same server

Ok I succeeded to get a mysql8 database running in a docker container on the same server. I can access it with phpmyadmin (also in an own contaner) from my browser. Now net thing would be have my TYPO3 instance also connecting to it. Can not get that working. Any ideas how do get in?

tried all version offered through the install tool without any success.