How to connect p5.js web editor database to my mongoDB GUI

I wanted to see how the project stores data in mongodb database so I followed all the steps as provided in the contributer docs and built the project using Docker .Everything works fine , but can anyone tell me how can I connect the proj to my MongoDB Compass i.e Mongo GUI (to see how data is stored in db) as it doesn’t expose a port for database.

You can use docker port forwarding feature.
docker run -p 27017:27017 your_mongodb_image_name

After that you can connect MongoDB Compass to localhost:27017 to access the database used in your p5.js web editor project.