Database5 recipes

Database connection, tuning or schema configs

mlflowYAMLintermediateVerified
MLflow Tracking Server with PostgreSQL and S3 Artifact Store

Deploy a production MLflow tracking server backed by PostgreSQL for run metadata and S3 for artifacts. Includes docker-compose setup, basic auth proxy and Python client configuration.

hapi-fhirYAMLadvancedVerified
HAPI FHIR Server application.yaml with PostgreSQL and SMART Auth

Complete HAPI FHIR server application.yaml: PostgreSQL JPA persistence, SMART-on-FHIR OAuth2 interceptor, subscription support, binary storage and audit logging — HIPAA-aware baseline.

fastapiPythonintermediateVerified
FastAPI Production App Factory with Async SQLAlchemy

A production-ready FastAPI application using the app factory pattern, async SQLAlchemy 2.0 with PostgreSQL, Alembic migrations, structured logging, and health-check endpoint.

postgresqlINIadvancedVerified
PostgreSQL Performance Tuning — postgresql.conf

Tuned postgresql.conf settings for a dedicated 8-core / 32 GB RAM database server. Covers shared buffers, WAL, autovacuum, parallel query and connection settings — with explanations for each knob.

dockerYAMLbeginnerVerified
Local Dev docker-compose with PostgreSQL and Redis

A docker-compose.yml for local development that spins up the app, PostgreSQL 16, Redis 7 and an optional Adminer instance — volumes ensure data survives container restarts.