If you want to access the database from an external source I believe that you’d need to switch to a two container configuration and open up the database port. If you have a budget, I can help). You can search here for “two container” but you’ll need to understand docker pretty well to get to what you want. (oh, but here is this How to move from standalone container to separate web and data containers)
Edit: since you purchased a two container install, you just need to add a line to the data container and use the password that’s in the file.
It would likely help if you describe your use case rather than focus on solutions that might not be appropriate. What data do you want to expose to whom?