Skip to content

essobi/fastapi-docker-debug

 
 

Repository files navigation

Debug FastAPI Applications on Docker 🐋

This is a very simple demonstration on how to debug your FastAPI application via Docker container. 😎

We'll make use of the following tools:

So please, if you don't have them installed, feel free to do so.

Usage 🖥️

Very simple app and usage. Let's not complicate things here! 😇

Build and run your docker-compose with the following command:

docker-compose -f docker-compose.debug.yaml up

Ok, what's happening? Looks like the process is hanging, but don't worry!

Go to your VSCode and press F5.

At this point, our debugger is connected! You now can add breaking points and debug your applications! 😙

License 📖

This project is licensed under the terms of the MIT license.

About

Need to debug your FastAPI application with Docker? Don't worry! 😎

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 44.2%
  • Python 29.2%
  • Dockerfile 26.6%