title: In docker-compose how to create an alias / link to localhost?
body: <p>In my docker-compose file there is a need for several containers to know the hostname of a specific container, including this specific container.</p>
  
  <p>Links will not work, since a container can not link to itself.</p>
  
  <p>Basically, what I am looking for is a way to alias localhost in docker-compose.</p>