Skip to content

Dockerized FastAPI REST API demonstrating containerization, Linux-based Docker execution (WSL), and backend API development.

Notifications You must be signed in to change notification settings

jamesbilis/Dockerized-FastAPI-Product-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python FastAPI Docker

Dockerized FastAPI Product API

A Dockerized REST API built with Python and FastAPI, designed to demonstrate containerization fundamentals, Linux-based Docker execution, and backend API development.

This project packages a FastAPI application and its dependencies into a Docker image and runs it as a container using Docker Engine on Linux (WSL), independent of the host Python environment.


Why Docker?

Docker is used in this project to:

  • Package the application and all dependencies into a portable image
  • Ensure consistent runtime behavior across environments
  • Run the service in an isolated Linux container
  • Expose the application via container port mapping

Features

  • FastAPI-based REST API
  • Fully containerized using Docker
  • Custom Dockerfile defining build and runtime steps
  • SQLite-backed data storage
  • Health check endpoint for service verification
  • Paginated product data endpoint
  • Runs using Docker Engine on Linux (WSL)

API Endpoints

Health Check

GET /health

docker build -t product-api .
docker run --rm -p 8000:8000 product-api


About

Dockerized FastAPI REST API demonstrating containerization, Linux-based Docker execution (WSL), and backend API development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published