Using environment variables in mongo db node

Not sure why you have started a new thread.

Like I explained with a link to the docs and a screenshot in the other thread : Node properties stored in external json file - #11 by Steve-Mcl

Ps, I would not use port and host as they may conflict with node-red. I'd use mongo_host and mongo_port