Give some time to mongodb before trying to connect

If docker and mongodb do not start fast enough, creating the admin fails. I added a sleep of 2 seconds to workaround this, there's probably a cleaner way to do this, but I don't know how.