Docker6 recipes

Containerised deployments

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.

nextjsJavaScriptintermediateVerified
Next.js Production next.config.mjs with Security Headers

A production next.config.mjs with security headers, image domain allowlisting, bundle analyser integration, standalone output mode for Docker, and environment variable validation.

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.

github-actionsYAMLintermediateVerified
GitHub Actions: Build, Push Docker Image and Deploy

A complete CI/CD workflow that builds a Docker image on every push to main, pushes it to GitHub Container Registry (GHCR) and SSH-deploys to a production server using docker compose pull && up.

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.

dockerDockerfileintermediateVerified
Production Multi-Stage Dockerfile for Node.js

A minimal, secure multi-stage Dockerfile for Node.js apps. The build stage installs devDependencies, the production stage copies only the compiled output — keeping the final image under 150 MB.