title: Docker - Make docker containers use my public ip
body: <h1>Problem</h1>
  <p>I have a react app running inside a container. I need to request an API(not mine) and it only accepts public IP addresses. Can the container use the public address of my machine?</p>
  <h1>Docker-compose</h1>
  <pre><code>version: '3'
  
  services:
  
  client:
    container_name: client
    build:
      context: ./client
      dockerfile: Dockerfile
    volumes:
      - './client:/usr/src/app'
      - '/usr/src/app/node_modules'
    ports:
      - '3000:3000'
    environment:
      - NODE_ENV=development
      - NODE_PATH=src
  </code></pre>