Access mariadb from my network

Hello, I created a container with apache / mariadb / phpmyadmin. I have access to this container without problem via my browser but I wish to access from my network directly to the database.

As I use several containers for different http services, until now I used traefik to avoid container port management. Unfortunately he does not know how to use anything other than the http. Mariadb blows is not accessible from my network. I tested using the docker “mapping”

-p 3306: 3306

I log in without problem.

But this does not solve my problem because I will have other container to create use mariadb or other services.

Is there another way to do reverse?

Thank you in advance.

Could you explain better ?

You want to access the database from your local network or network within docker ?

Yes I want to access the database from my network.