Failed to do request while using docker-compose

Hi. Try to run a docker from a docker file.

When doing docker build, I can have it built and running well. But when doing docker-compose build, I got this:

It’s weird I can request it with docker but can’t request it with docker-compose.

This is my docker-compose.yml

version: '2'
  # ----- Mock CM -----
    build: ./mock-cm
      - '8209:8080'