There are so many types of diagrams in UML. I am little confused about which one to use for what. 
I designed a 3-tier architecture for my web application software using UML Component Diagram. Please see the attached image and tell me if I'm doing this right or wrong. Is this a good idea to use Component Diagram for this architecture?
[![enter image description here](https://i.stack.imgur.com/RFNhH.png)](https://i.stack.imgur.com/RFNhH.png)