Torizoncore-builder bundle modifies used docker-compose.yml

Hi @timov ,

Welcome to our community!

To answer your questions:

The docker-compose.yml file was copied to /var/sota/storage/docker-compose because Torizon OS has a custom systemd service called docker-compose.service that checks the existence of a compose YAML in this path. If it exists then the service runs docker-compose up to bring up the containers. Otherwise, it does nothing.

This allows one or more containers to automatically start as soon as the OS is initialized, and of course they are initialized according to the configurations set in the docker-compose.yml file.


I think the environment variables are being expanded in the bundle command. Given that those are not defined on your host system it expands them to the empty string "". If you want the compose file to have the literal string ${VAR} in it you can do a workaround using a .env text file, as I previously did for another customer:

Let me know if this helps.

Best regards,
Lucas Akira