docker

Docker

Build, ship, and run any app, anywhere.

Docker is the de-facto standard for containerising applications. These recipes cover Dockerfile best-practices, multi-stage builds, Compose configurations for local dev and production, and optimisation tips.

Configuration Recipes2

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.

Docker · DevOps & Infrastructure
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.

Docker · DevOps & Infrastructure