Back to Kits

api-fastapi-postgres-redis

Production API: FastAPI, PostgreSQL, Redis, Docker, async SQLAlchemy

$ openenv init api-fastapi-postgres-redis

v1.0.0 · by openenv-core

Tech Stack

framework

FastAPI

database

PostgreSQL

cache

Redis

Setup Commands

$ pip install -r template/requirements.txt
$ docker-compose up -d
$ uvicorn template.main:app --reload

Health Check

Endpoint

http://localhost:8000/api/health

Expected

200

Timeout

15s

Required Ports

800054326379

Tags

fastapipythonpostgresredisapi
View Source →