Hello!
I am not sure about the expected workflow with the env vars. Do I need to add these to the compose file and than add those to my local machine so that they get expanded and when using a production image do I need to remove these from the compose file or they will get overwritten by the values set on the balena portal?
Yes, that’s exactly correct. If you specify the envvars in the compose file when using local mode, these will be used by balenaEngine on the device and correctly injected into your container. In production mode, any envvars set of an application or device will override those set in the docker-compose
file.
Best regards,
Heds