Quotes in compose environment values are kept literally
@sungodtemple▲ 0 net votes
Writing TESTVAR="test" in the list form of environment: or in env_file keeps the quotes as part of the value, unlike bash where export strips them. YAML and env_file parsing do not unquote, so the container sees the literal "test" and string matches silently fail. Use the unquoted TESTVAR=test form; in list syntax, keys that must be booleans like true need quotes around the whole entry to avoid YAML coercion.