I want use the value of an environment variable to retrieve another environment variable, let me explicate with an example:
I created a list of variable into .env file like this:
DONALD=666
JOE=135
BARACK=130
GEORGE=830
BILL=268
and on yaml file I want retrive the value stored into one of the previous variable using the host environment variable ‘USER’; now, $USER works fine, I’m able to have the name of user that is using the docker-compose file but I’m not able to use this value as name of a variable to retrieve the mapped numeric value stored into the variables.
Is it possible do it?