ERROR: Version in ".\docker-compose.yml" is unsupported

Hello everyone,

I'm just starting to get into QuantRocket and tried to set up the docker files on Amazon Web Services. Right now I'm stuck at the step of actually deploying QuantRocket on the Servers of Amazon. After I entered "docker-compose -p quantrocket up -d" I get the following error message:

ERROR: Version in ".\docker-compose.yml" is unsupported. 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 Compose file | Docker Documentation

What am I doing wrong? Your help is much appreciated!

Best,
JD

It probably depends on your OS and version of Docker/Docker Compose. I think another user experienced this error when they had selected Windows containers instead of Linux containers on Docker for Windows. Do any of these Stack Overflow answers help you?

I'm going to check the answers and get back to you if I need additional help. I didn't use Docker for Windows. I had to use Docker Toolbox because I only have Windows 10 Home. But I followed the instructions of the guide about using Docker Toolbox to set up QuantRocket.

UPDATE:
I figured it out! I uninstalled my docker version using pip in CMD on Windows. After that I installed the latest version of it (a simple update would have work too, I guess). After that I checked which version of docker was installed. With that information I moved to this Link to check what compose file format is the latest for my docker version. In my case it was 3.6. I changed the version in the compose file from 2.4 to 3.6 and after that everything worked fine.

Best,
JD