title: How to assign domain names to containers in Docker?
body: <p>I am reading a lot these days about how to setup and run a docker stack.  But one of the things I am always missing out on is how to setup that particular containers respond to access through their domain name and not just their container name using docker dns.</p>
  
  <p>What I mean is, that say I have a microservice which is accessible externally, for example: users.mycompany.com, it will go through to the microservice container which is handling the users api</p>
  
  <p>Then when I try to access the customer-list.mycompany.com, it will go through to the microservice container which is handling the customer lists</p>
  
  <p>Of course, using docker dns I can access them and link them into a docker network, but this only really works for wanting to access container to container, but not internet to container.</p>
  
  <p>Does anybody know how I should do that?  Or the best way to set that up.</p>