Environment variable using docker-compose is always null

Running in a supervisor does not affect the environment you see. But running in docker does.

If you see the variable in the shell you run the application in - try:

echo $MY_VAR

Sytem.get_env will also see it.