Ok, I wasted around 3 hours to debug a similar issue.
If you guys ever get the below error
ERROR: yaml.scanner.ScannerError: mapping values are not allowed here
in ".\docker-compose.yml", line 2, column 9
It’s because a space is needed between
version:'3' <– this is wrong
version: '3' <– this is correct.
Also, if you are using eclipse, do yourself a favor and install the YEdit YAML editor plugin