title: docker-compose.yml container_name and hostname
body: <p>What is the use of <code>container_name</code> in <code>docker-compose.yml</code> file? Can I use it as <code>hostname</code> which is nothing but the service name in <code>docker-compose.yml</code> file.</p>
  
  <p>Also when I explicitly write <code>hostname</code> under services does it override the hostname represented by <code>service name</code>?</p>