How to change the code so that the nodejs connects to a local database instead of a remote one on Atlas?

I run the app and database through docker-compose every time, so there should be any cache.