title: How to access container from another compose that connected to external network?
body: <p>Here is compose file with config of container that I wish to connect to from external container (defined in another compose file):</p>
  
  <pre><code>version: '3.5'
  services:
    service-to-connect-to:
      build: .
      networks:
        - my-external-network
  
  networks:
    my-external-network:
      external: true
  </code></pre>
  
  <p>and another compose file that contains config for container from which I wish to connect to <code>service-to-connect-to</code>:</p>
  
  <pre><code>version: "3.5"
  
  services:
    service-to-connect-from:
      build: .
  </code></pre>
  
  <p>I tried to connect to <code>service-to-connect-to</code> via this domains:</p>
  
  <p><code>service-to-connect-to</code>
  <code>service-to-connect-to.my-external-network</code>
  <code>my_external_network.service-to-connect-to</code></p>
  
  <p>but nothing of them worked.</p>
  
  <p>Where I'm wrong?</p>
  
  <p>Thanks</p>