compose.yml file, which looks like this:
compose.yml
version: \'2\' services: discovery-microservice: build: discovery-microservice context: /discov
Check your whitespaces by validating your YAML input.
I spent 1hour to find out.