Issue with docker-compose file after image build

After successfully using tutor images build openedx severally, I tried it this time after adding xblock_scorm. My compose.yml file upgraded itself to version 3.7. Even if I try to revert back to 3.3 o 2.2 as suggested by manually editing, it goes back to 3.7. Please help…

Thanks for your support.

Error message here:

josoga2@josoga2:~$ tutor local quickstart
==================================================
        Interactive platform configuration
==================================================
Your website domain name for students (LMS) [trusted.com] 
Your website domain name for teachers (CMS) [studio.trusted.com] \
Your platform name/title [TrustED] 
Your public contact email address [josoga2@gmail.com] 
The default language code for the platform [en] 
Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [y/N] 
Configuration saved to /home/josoga2/.local/share/tutor/config.yml
================================================
        Updating the current environment
================================================
Environment generated in /home/josoga2/.local/share/tutor/env
==============================================
        Stopping any existing platform
==============================================
docker-compose -f /home/josoga2/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
ERROR: Version in "/home/josoga2/.local/share/tutor/env/local/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 https://docs.docker.com/compose/compose-file/
Error: Command failed with status 1: docker-compose -f /home/josoga2/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
(base) josoga2@josoga2:~$ docker-compose logs
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml
        
(base) josoga2@josoga2:~$ cd /home/josoga2/.local/share/tutor/env/local/
(base) josoga2@josoga2:~/.local/share/tutor/env/local$ docker-compose logs
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 https://docs.docker.com/compose/compose-file/

Hi! docker-compose v1.22.0+ is required for running Tutor. You should upgrade your version of docker-compose.

The reason why your changes to the tutor/env folder are overwritten is that this is the way Tutor works :slight_smile: I encourage you to read this section of the docs: https://docs.tutor.overhang.io/intro.html#how-does-tutor-work
If you really want to modify the files that are generated in the Tutor environment, you should fork Tutor and modify the templates. I don’t encourage you to do that to modify the supported compose version, though, as it will probably not work anymore.

1 Like

Great . it worked well.

1 Like