Hi, first of all, congrats for this job.
I don't know how do you use boolean variables from docker-compose because in my tries these variables are converted from boolean to string.
Example:
---
docker-compose
PROD_MAIL_SECURE_CONNECTION: 'false'
And then, inside the container:
> typeof(process.env['PROD_MAIL_SECURE_CONNECTION'])
'string'
To work around this problem, I have edited the config.js file to use JSON.parse in specific variables, but I think the CheckEnvVar function could be improved testing for true or false strings, and then convert the value, like in http://stackoverflow.com/questions/3976714/converting-string-true-false-to-boolean-value
Hi, first of all, congrats for this job.
I don't know how do you use boolean variables from
docker-composebecause in my tries these variables are converted frombooleantostring.Example:
And then, inside the container:
To work around this problem, I have edited the
config.jsfile to useJSON.parsein specific variables, but I think theCheckEnvVarfunction could be improved testing fortrueorfalsestrings, and then convert the value, like in http://stackoverflow.com/questions/3976714/converting-string-true-false-to-boolean-value