Connect erpnext to database

Hello,
I am trying to install erpnxt on a container with db server running on another container.
how should i setup? What about remote access, how does it work?
Your help will be greatly appreciated.
Thanks

there are already separate discussions in this topic