How can I use my own redis, postgres and mongo instance?

I tried editing the env file (kobo-install/templates/kobo-env/envfiles/datavase.txt.tpl) but the backend still pulls all 3 containers during initial setup. How can I avoid using the containerized postgres, redis and mongo instances and instead use the managed service on azure or any other cloud provider?