docker: use environ to get mongo host.
docker: use environ to get mongo port.
docker: refactored mongo connection.
docker: refactored get keys.