The way to do that is usually to use the API or the data explorer plugin.
It’s possible to enter the container like I said and add a user and then open the port on the app.yml, but that’s usually not recommended.
What problem are you trying to solve by connecting from an external source?