I use PyCharm for my python development and normally I use a virtual env but now I found poetry and it manages the dependencies in a better way than just having a pip requirements file.
I had issues loading correctly a poetry environment from docker compose into pycharm available environments.
This sometimes works, sometimes I just reload the entire environment.
Run your docker image of course.