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.
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
- 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)
GET /health
docker build -t product-api .
docker run --rm -p 8000:8000 product-api