You are about to dockerize a FastAPI service. The packaging choice is still a meeting, not a decision.
Slides say one tool is faster. Your teammate still trusts the old install flow. Nobody wants to bet a production repo on a blog post they skimmed once. You want the same app built two ways, on your laptop, with something you can actually run and poke at.
This starter is that side-by-side lab: one FastAPI sample, two container images, one compose file to bring both up.
Same app. Two installs. Your numbers.
What you get
- A real comparison setup, not a screenshot. One FastAPI backend with user-management-style routes and SQLite, packaged twice for Docker.
- Classic install path in one image. Dependencies install the traditional way from a requirements file with pip.
- Modern install path in the other. The second image uses uv for resolution and installs, with caching called out in the project docs.
- Side-by-side local ports. Compose starts both services so you can hit the same API surface on each assigned port and compare behavior yourself.
- Shared code you extend once. Change routes or models in one place, rebuild both images, and see how each container recipe responds.
- Health checks and CORS included. Both services ship with middleware and health checks so the sample feels closer to a real service than a hello-world stub.
Your first morning after cloning
Picture copying the sample environment file, bringing compose up, and watching two builds finish. You open the requirements-style service on one port and the uv-style service on the other. Same endpoints, two dependency stories. You note which rebuild feels snappier on your machine, screenshot the diff for the team chat, and move on with evidence instead of opinions.
Ready to try it?
- Get the starter on GitHub for both Docker recipes, compose, and the shared FastAPI app






