How can I connect phpmyadmin that is installed on a host server to a maria db inside a running docker container?

I want to be able to control persisting data with Phpmyadmin from the host (outside) the running docker container which contains mariadb. I don’t want to have phpmyadmin inside the container where my app is located.

Source: Docker Questions