Mongoose Server Selection Error ECONNREFUSED with a docker-compose
A friend of mine find the answer. The code works but I forgot to rebuild my images with docker-compose build
before launching the containers.
Sorry for the original question not being really useful, still I think I won't delete it because it may help other beginners who made the same mistake.