Running docker-compose up results in the following error.
ERROR: The Compose file './docker-compose.yml' is invalid because:
'True' does not match any of the regexes: '^x-'
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
expand_more
edit
Here is my docker-compose.yml file which I copied from Here (I just changed the data and server paths).
Running
docker-compose up
results in the following error.Here is my
docker-compose.yml
file which I copied from Here (I just changed the data and server paths).Running
docker-compose version
.Note: I managed to fix it by changing the version in the yaml file from '1.0' to '3.8'.