docker variable is not set

In my docker-compose.yml I have

     ports:
      - ${PORT}:80

In my run configuration, I have the PORT environment variable set (e.g. to 9000).

However, when I run the configuration, I get an error that the PORT variable is not set:

 

On PyCharm Pro 2020.2, Ubuntu 20.04 LTS

 

Thanks!

0
2 comments

My Python virtual environment is called `.env`.

EDIT: renamed virtual environment to .venv and tried the suggestion and it works.

Thanks!

0

Please sign in to leave a comment.