This is more a general question for how to connect to local services through Docker. There\'s a similar question in a Github issue here that doesn\'t seem to have any resolu
On a mac with boot2docker, you can use homebrew's default mysql/mariadb settings by adding the Mac OS Host.
This worked for me (with, what I believe, are default settings).