Use environment configuration to pre-configure elasticsearch