Self Hosted / Docker access MariaDB MySQL

Hi, could you please advise how this can be achieved?
Thank you