How to install Pimcore when using remote database?

I’m starting to play a bit more with clustering. I’m trying to get my first app server installed with a separate db server. I can access the remote database server from the command prompt with mariadb-client, but I don’t know how to specify the remote DB information when running ./vendor/bin/pimcore-install?

EDIT: I just stumbled onto this: https://pimcore.com/docs/5.x/Development_Documentation/Getting_Started/Advanced_Installation_Topics.html

I will play with this a bit more.

EDIT EDIT:
OK, the installer.yml file mentioned on that page did the trick.