How to add environment variables to docker compose interpreter?


Hi, I'm trying to add the environment variables that I usually add to docker compose with the --env-file flag to the docker compose python interpreter, but it just not works:

Here is what I'm doing:


It seems to be the same issue as where PyCharm doesn't set the environment variables before starting the container.
Perhaps setting the environment variables in the docker-compose.yml file may work as a workaround, but I'm not 100% sure.


That workaround can be dangerous as the docker compose file receives information such as database credentials.