title: How to get Docker containers to talk to each other while running on my local host?
body: <p>I have a Webapp running completely locally on my MacBook.</p>
  
  <p>The Webapp has a Front End (Angular/Javascript) and a Back End (Python/Django) which implements a RESTful API.</p>
  
  <p>I have Dockerized the Back End so that it is completely self-contained in a Docker Container and exposes port 8000. I map this port locally to 4026.</p>
  
  <p>Now I need to Dockerize the Front End. But if I have these two docker containers running on my localhost, how can I get the FE to send HTTP requests to the BE? The FE container won't know anything that exists outside of it. Right?</p>
  
  <p>This is how I run the FE:</p>
  
  <pre><code>$ http-server
  Starting up http-server, serving ./
  Available on:
    http://127.0.0.1:8080
    http://192.168.1.16:8080
  Hit CTRL-C to stop the server
  </code></pre>
  
  <p>Please provide references explaining how I can achieve this.</p>