title: Docker container DNS alias available in other containers
body: <p>I want to set up two Docker containers where both know its own and the others DNS name. If it has to be only in one direction it's easily made with links. But links build a dependency between containers which stop them from starting.</p>
  
  <p>What I want is something like this (docker-compose.yml):</p>
  
  <pre><code>version: '3'
  services:
  
    one:
      hostname: one.priv
      links:
        - "two:two.priv"
  
    two:
      hostname: two.priv
      links:
        - "one:one.priv"
  </code></pre>