Assuming the host machine has the TESTVARIABLE set
user@hostmachine> echo $TESTVARIABLE
test_value
How can you pass this variable to a container with docker-compose, using an .envfile or the docker-compose.yml file?
Most answers I find, involve explicitly defining that value in an .envfile, or directly in the docker-compose.yml, or in the command line when executing the up command`. However, I am looking to pass an existing variable on the host machine to the container.