Here
Docker Compose treats the value true as a YAML boolean which in the container it gets convert to "True". This will make the if condition
fail because the first letter get capitalized.
This get evaluated as "True" == true
Adding quotation mark solve the issue
I can send a quick PR if possible. Just post here in case others are facing the same problem.