Edit database urls in pgloader.ini then use run.sh, or use environment variables.
See here: https://pgloader.readthedocs.io/en/latest/command.html#templating-with-mustache
Read the comment at the start of the pgloader script file for an important note on how to fix json stuff before running pgloader.