Sign inSign up

harasani/fastapi-app

By harasani

•Updated about 1 year ago

Image
API management
1

696

harasani/fastapi-app repository overview

⁠FastAPI App:

This project is my first python and fastapi program that consists of following technology stack:
✓ Python
✓ Docker
✓ Docker Compose
✓ Postman
✓ FastAPI
✓ PostgreSQL
✓ Pydantic
✓ SQLAlchemy
✓ Psycopg2
✓ Alembic
✓ Git
✓ Nginx
✓ Jaeger
✓ Pytest

The final result of this project represents as following image (Swagger Style):

Project Entire Image

The following picture represents sample Jaeger output for root endpoint (/):

Screenshot 2025-07-27 at 22 47 31

Before doing anything, set the following variables, as you want to be on your server. Some of them have default values, so you can do not set them, if you accept the default values:

    POSTGRES_SERVER: str = 'localhost'
    POSTGRES_PORT: str = '5432'
    POSTGRES_OUT_PORT: str = '5432'
    POSTGRES_DB: str = 'postgres'
    POSTGRES_USER: str = 'postgres'
    POSTGRES_PASSWORD: str

    SECRET_KEY: str
    ALGORITHM: str
    ACCESS_TOKEN_EXPIRE_MINUTES: int = 60

    PROJECT_VERSION: str = '0.3.0'
    ENVIRONMENT: str = 'Production'

    NGINX_PORT: str = '80'

    OTEL_EXPORTER_OTLP_ENDPOINT: str
    OTEL_TRACES_EXPORTER: str
    OTEL_METRICS_EXPORTER: str
    JAEGER_UI_OUT_PORT: str
    OTLP_GRPC_OUT_PORT: str
    COLLECTOR_OTLP_ENABLED: bool = True

Tag summary

Content type

Image

Digest

sha256:a4a153836…

Size

105.9 MB

Last updated

about 1 year ago

docker pull harasani/fastapi-app