Parameterizing elasticsearch and mongodb servers

Parameterizing elasticsearch and mongodb server locations via environment variables