Sign inSign up

ved4dev/fastapi-app

By ved4dev

•Updated 10 months ago

Web api application build using fastapi

Image
API management
0

181

ved4dev/fastapi-app repository overview

⁠FastAPI Application

Docker Pulls Docker Image Size

A production-ready FastAPI application containerized for easy deployment.

⁠Quick Start

docker pull yourusername/fastapi-app:latest
docker run -p 8000:8000 yourusername/fastapi-app:latest

Visit http://localhost:8000/docs for API documentation.

⁠Environment Variables

VariableDescriptionDefault
PORTServer port8000
DATABASE_URLDatabase connection-
API_KEYAPI authentication key-

⁠Tags

  • latest - Latest stable release
  • v1.0.0 - Specific version
  • dev - Development build

⁠Features

  • ⚡ FastAPI framework
  • 🔒 Security best practices
  • 📊 Built-in API documentation
  • 🐳 Multi-stage build for smaller image size

⁠Usage Examples

⁠Basic Usage
docker run -d -p 8000:8000 yourusername/fastapi-app
⁠With Environment Variables
docker run -d \
  -p 8000:8000 \
  -e DATABASE_URL="postgresql://..." \
  -e API_KEY="your-key" \
  yourusername/fastapi-app
⁠With Docker Compose
version: '3.8'
services:
  api:
    image: yourusername/fastapi-app:latest
    ports:
      - "8000:8000"
    environment:
      - DATABASE_URL=${DATABASE_URL}

⁠Building from Source

git clone https://github.com/yourusername/fastapi-app
cd fastapi-app
docker build -t fastapi-app .

⁠Health Check

curl http://localhost:8000/health

⁠Support

⁠License

MIT License - see LICENSE file for details

Tag summary

Content type

Image

Digest

sha256:b79989d0d…

Size

56.4 MB

Last updated

10 months ago

docker pull ved4dev/fastapi-app