Sample application to help illustrate how to break into the debugger in a Python Flask application running as a container in Docker Compose
This is the companion repository to this blog post (Medium)
$ docker-compose run --build -d
If changes were made to the file (e.g. added breakpoint), build first...
$ docker-compose build
Run the application in Docker Compose but specify a particular command...
$ docker-compose run -p 8000:8000 svc1 python3 -m pdb app.py
Debug the application as you would any other Python application
$ curl localhost:8000
$ curl -X POST localhost:8000/message/<message_to_add>
$ curl -X POST localhost:8000/message