I went through this thread which was closed with a working solution
I replaced my docker-compose.yml with the solution.
It didn’t work for me.
dave@DESKTOP-9H3JVH9:~/docker$ docker-compose up -d ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in “./docker-compose.yml”, line 3, column 9
I have no clue what the error means (sorry, pretty new at this).
Here is my docker info:
Client: Docker Engine - Community Version: 19.03.12 API version: 1.40 Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:45:44 2020 OS/Arch: linux/amd64 Experimental: false
Your issue is with the format of your file. I will suggest you use a yaml validator which you can find by googling those terms. For example from my findings, this stackoverflow indicates there is a feature in docker_compose to validate docker-compose files: