-By setting MongoDB port as 27017:27017 it will be exposed out of the container.
So in this PR I've created a virtual network between the backend and the database to unexpose it.
-Added "depends_on" in the frontend to wait that backend has started.
Checklist
[x] I have tested these changes
[ ] I have updated the relevant documentation
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the codebase
[x] My changes generate no new warnings or errors
[x] The title of my pull request is clear and descriptive
Description
-By setting MongoDB port as 27017:27017 it will be exposed out of the container. So in this PR I've created a virtual network between the backend and the database to unexpose it.
-Added "depends_on" in the frontend to wait that backend has started.
Checklist