Hello sekitaka.
It seems that the Project Name can be specified by specifying the COMPOSE_PROJECT_NAME
environment variable in addition to specifying it to execute the docker-compose
command.
From Preferences> Project> Project Interpreter, set COMPOSE_PROJECT_NAME
to any Project Name in ʻEnvironment variables` of Docker Compose settings.
I was using docker started with docker-compose as a python interpreter in Pycharm, but even if I build it with docker-compose -p <project name> -f <path to docker-compose.yml> build
, I was addicted to the environment running from Pycharm not being up to date.
I created a docker
directory for docker directly under the project, and placed docker-compose.yml and Dockerfile under it.
Pycharm seems to be executed without specifying the Project Name of docker-compose, and if it is left as it is, the image name when executed from Pycharm will be docker_ <service name> _ serial number
.
I was specifying the Project Name via the helper script when building, so it was a punch line that the image used by Pycharm could not be updated.
Recommended Posts