How to debug processes running inside docker-compose with pycharm

You are supposed to use standard Python run configuration, no the Docker-specific one. The latter is used to build containers, start docker-compose services and so on.

PyCharm will auto-start your services, mount your code and execute it inside a container with pure Python Run Configuration if a Docker-based interpreter is selected.

Perhaps the docs can help: https://www.jetbrains.com/help/pycharm/using-docker-compose-as-a-remote-interpreter.html


There is currently a problem running dockerized django with an entry point, so to give an idea of the problem if someone else lands here with that! if you are facing this problem create a different docker-compose.dev.yml file just for debugging without an entry point. This is the work around for now