Connecting MariaDB docker instance from MySQL workbench

ERPNext (branch: develop) is running in docker. I want to access the MariaDB from MySQL Workbench but not able to connect

image

Please help

publish port 3306:3306 of Mariadb container in the yml.

That way you can connect to 0.0.0.0:3306 in MySQL workbench