pycharm 2024.3.5 django docker compose set project path in container
I have a docker compose django project that run fine in a terminal on the server and I'm trying to setup Pycharm for development debugging. In my docker-compose .py I have a volume mapping the project root on the host file system to the container:
volumes:
- ../:/code
So I would expect that when the project is run/debug it would build the root project directory in the container directory /code but instead it is in /opt/project directory.
How can I set the path of the project in the container to use /code and not /opt/project ?
Please sign in to leave a comment.
Hello, @Rickystambach,
Unfortunately, its a known issue and as a workaround we can suggest using /opt/project at the moment. Please vote for the issue to receive updates regarding its status. If you are not familiar with voting on YouTrack, you can check this article.