Docker-Compose file has yaml.scanner.ScannerError
<p><code>compose.yml</code> file, which looks like this:</p>

<pre><code>version: '2'
services:
  discovery-microservice:
    build: discovery-microservice
      context: /discovery-microservice/target/docker
      dockerfile: Dockerfile
  ports:
   - "8761:8761"
</code></pre>

<p>While I am executing it I get the following error:</p>

<pre><code>yaml.scanner.ScannerError: mapping values are not allowed here
in "C:\...\docker-compose.yml", line 5, column 14
</code></pre>

<p>From what I see, nothing is wrong with the format, e.g. whitespaces missing. My overall goal is to specify a development mode docker-compose file, pointing it to the target directories from the different modules.<br>
What am I doing wrong here?</p>