title: React not making a request from docker container
body: <p>so I'm developing a basic Express backend for a React app.
  The request is being made like this:</p>
  
  <pre><code>axios.get(`${serverLocation}/api/graph/32`).then(res =&gt; {
              this.setState({datag: res.data});
              for(var key in this.state) {
                  data.push(this.state[key]);
              }
          });
  </code></pre>
  
  <p>Server locations looks like <a href="http://IP:PORT" rel="nofollow noreferrer">http://IP:PORT</a>.
  The api is correct and everything I can see and on my development machine it works. React makes successful requests to the server at specified location etc. The thing is, when I put this into 2 separate docker containers via docker-compose.yml it won't work.
  This is my docker-compose.yml:</p>
  
  <pre><code>version: '2.0'
  services:
    server:
      restart: always
      container_name: varno_domov_server
      build: .
      ports:
      - "8088:5000"
      links:
      - react
      networks:
        - varnodomovnetwork
    react:
      restart: always
      container_name: varno_domov_client
      build: client/
      ports:
      - "8080:3000"
      networks:
        - varnodomovnetwork
  networks:
    varnodomovnetwork:
      driver: bridge
  </code></pre>
  
  <p>I also have custom Dockerfiles, the server looking like:</p>
  
  <pre><code>FROM node:10
  
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  
  RUN npm install
  
  COPY . .
  
  EXPOSE 5000
  CMD [ "npm", "start" ]
  </code></pre>
  
  <p>And the client looking like:</p>
  
  <pre><code>FROM node:10
  
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  
  RUN npm install
  
  COPY . .
  
  EXPOSE 3000
  CMD [ "npm", "start" ]
  </code></pre>
  
  <p>If you've made it this far reading, thank you for taking the time. I am open to any suggestions regarding docker here, the React part is not written by me. If any additional information is required, tell me in the comments. Isolation is making me very available :)</p>