Great video however could you elaborate on why they were communication to backend network and not frontend? if I use command : docker exec web01 ping db1.frontend they start getting data from frontend network. so my question is why by default they are talking over backend network?
Thank you for the comment. Been a while since I created this video.. but isn't DB01 supposed to just be in the backend network and not the frontend? If DB01 is assigned to both frontend and backend.. I assume if you do a docker inspect it shows the interfaces in a specific order.. that order might determine which is the 'default'.
@@DevOpsJourney actually I connected it to both networks just to check. However as you rightfully said, after inspecting it came to know the latest network is the default one.
Thank you, good explanation, really helpful!
Great video
however could you elaborate on why they were communication to backend network and not frontend?
if I use command :
docker exec web01 ping db1.frontend
they start getting data from frontend network.
so my question is why by default they are talking over backend network?
Thank you for the comment.
Been a while since I created this video.. but isn't DB01 supposed to just be in the backend network and not the frontend?
If DB01 is assigned to both frontend and backend.. I assume if you do a docker inspect it shows the interfaces in a specific order.. that order might determine which is the 'default'.
@@DevOpsJourney actually I connected it to both networks just to check.
However as you rightfully said, after inspecting it came to know the latest network is the default one.
thanks
You're welcome!