title: Network mode container in docker-compose
body: <p>With plain docker I can use network mode container like this:</p>
  
  <pre><code>docker run -d --name container-b --network container:container-a &lt;image&gt;
  </code></pre>
  
  <p>Can this be achieved using docker-compose?</p>
  
  <pre><code>services:
    service-b:
      container_name: container-b
      network_mode: "container:container-a"
  </code></pre>
  
  <p>Leads to:</p>
  
  <pre><code>ERROR: Please provide 'network_mode: "bridge"' or 'network_mode: "host"' in your docker-compose.yaml
  </code></pre>