Node-red starts but does not respond locally in 1880 port

I am connecting unified-red with the intent of using it to manage users and profiles in node-red.

I tried to do it using Docker, connecting services with Docker Compose. Inside the app container, I can access MongoDB using mongosh and test the connection using telnet, but unified-red exits with 1 and gives this error: Uncaught Exception: MongooseError: Operation roles.findOne() buffering timed out after 1000ms. Therefore, I am setting up the unified-red module to understand the problems.