I create a docker compose file which is correct 100%, but vscode see some error, this is very annoying
May be somebody can explain?
CodePudding user response:
Reason of VSCode alert is obviously invalid YAML
syntax of your file. According to specific syntax and directory name I can conclude it's template of compose file.
But, thanks to flexible YAML
specification, you can try to make it valid.
Try to enclose in quotation marks your volumes items (like - "{{ ldap_...}}:/dir/"
), seem it will satisfy vscode, docker compose and your template engine.