Closed karthiksogal closed 1 year ago
Which version of docker and docker compose are you using
Docker: Docker version 24.0.5, build ced0996 compose: 2.20.2-desktop.1 ubuntu: Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy
code:
i tried different versions on line 8 remove the bracket the quotes and combinations of it, still same
i want to really make this work as this is the most elegant solution in have seen out there, thanks for your response, let me know if you need more info. Regards
I will check this on weekend
Thanks!
Its working fine on my sandbox environment with same docker and compose version.
Have you edited anything in docker-compose file before deploying.
Check if all the lines have proper indentation. Check YAML documentation if you don't understand YAML file. This error occurs when indentation has some extra space or less space. Try to remove indentations and add it again manually. Sometimes due to IDE used to open/edit the code, indentations are messed up due to space and tabs concept in it.
@karthiksogal check the indentation at 46. Likely you only deleted the "#" and that gives the word "ports" 5 spaces.
I am getting error yaml: line 7: did not find expected key
VPN_SERVICE_PROVIDER=protonvpn OPENVPN_USER=openvpn-username OPENVPN_PASSWORD=openvpn-password SERVER_COUNTRIES=Netherlands docker compose --profile vpn up -d parsing /media/SSD240/docker-compose.yml: yaml: line 7: did not find expected key
Any idea why?
PS: very new to code