I found similar topics, but there were errors in the yml-file like missing spaces etc. - but I cannot find any errors here, the file passes correctly in YAML-Checkers…?
Looks like you copied the yaml from a Word document. Even the quotation mark is invalid at the top, but the version is completely unnecessary and unused in modern, supported compose. And a yaml can be valid, but if you define a string instead of a list when Docker Compose expects a list, you will get this error message. The dashes are not correct under the volumes section. It is not what you would type on a keyboard. So it is not a valid list
By the way the environment section is wrong too. You should either use a mapping or a list, not a mix of both which is a string.
Thank you for your hints - I changed the environment section. But you mentioned that the dashes are not correct under the volumes section - so what would the correct volume-section look like?
This does not work either:
volumes:
/srv/dev-disk-by-uuid-5802bb05-8f91-48c7-9d69-40141b872005/Appdata/plex:/config
/srv/dev-disk-by-uuid-483521cf-03df-48cf-9194-98888ffb2214/Media/Video:/Filme:ro
Don’t copy from webpages either when there is no code block, or if you do and you see a problem, type everything manually. The blog post shows the code in a terrible way. The blog engine probably automatically formatted it as a normal text changing characters, not as code. That’s why I recommended typing typing manually. The character you used is a special character. It is usually inserted by pressing multiple keys on the keyboard if available.The default is the shorter one.
It was the same kind of list with the same correct character.