Docker-Compose file has yaml.scanner.ScannerError

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

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)