title: Publish port on localhost of another container
body: <p>I have following docker-compose.yml (left out not essential parts):</p>
  
  <pre><code>zabbix-server:
    image: zabbix/zabbix-server-pgsql:alpine-4.0-latest
    ports:
     - "10051:10051"
    networks:
     zbx_net_backend:
       aliases:
        - zabbix-server
  zabbix-agent:
    image: zabbix/zabbix-agent:alpine-4.0-latest
    ports:
     - "10050:10050"
    networks:
     zbx_net_backend:
      aliases:
       - zabbix-agent
  networks:
    zbx_net_backend:
      driver: bridge
      internal: true
      ipam:
        driver: default
        config:
        - subnet: 172.16.239.0/24
  </code></pre>
  
  <p>The <em>zabbix-server</em> is looking out-of-the-box for the <em>zabbix-agent</em> on its <code>localhost:10050</code>. Is it possible to make the port 10050 of the <em>zabbix-agent</em> available on localhost:10050 of the <em>zabbix-server</em>?</p>
  
  <p>I know that I can configure the zabbix-agent hostname in the zabbix-server via <code>"Configuration" -&gt; "Hosts" -&gt; edit -&gt; "DNS Name"</code> but I want to avoid that if possible and achieve it via configuration of the docker-compose.yml.</p>