docker.recipes

Documentation

Comprehensive guides on Docker Compose best practices, security hardening, networking concepts, and operational knowledge for self-hosting.

Fundamentals

Core concepts and best practices for Docker Compose

10 articles
How to Structure Docker Compose Files for Self-Hosting

Learn the best practices for organizing and structuring your Docker Compose files for maintainable self-hosted applications.

Fundamentals8 min read
Persistent Volumes in Docker: Bind Mounts vs Named Volumes

Understand the difference between bind mounts and named volumes, and when to use each for persistent data.

Fundamentals7 min read
Environment Variables Best Practices for Docker Compose

Master the art of managing environment variables in Docker Compose for security and flexibility.

Fundamentals8 min read
Common Docker Compose Mistakes in Self-Hosted Setups

Avoid the most frequent pitfalls that cause frustration, security issues, and downtime in Docker Compose deployments.

Fundamentals10 min read
Docker Compose Performance Tuning

Optimize your Docker Compose deployments for better performance, lower resource usage, and faster startup times.

Fundamentals10 min read
Health Checks and Service Dependencies in Docker Compose

Master service startup order with healthchecks and depends_on to ensure reliable container orchestration.

Fundamentals8 min read
Docker Compose Profiles: Running Service Subsets

Use profiles to selectively start services for development, testing, debugging, or production scenarios.

Fundamentals6 min read
CPU and Memory Limits in Docker Compose

Prevent runaway containers from crashing your server with proper resource constraints.

Fundamentals7 min read
Docker Compose Override Files: Base + Environment Pattern

Use override files to manage different configurations for development, staging, and production.

Fundamentals6 min read
Docker Logging: Drivers, Rotation, and Collection

Configure logging properly to prevent disk exhaustion and enable effective debugging.

Fundamentals7 min read

Networking

Networks, proxies, and exposing services

10 articles
Traefik vs Nginx Proxy Manager vs Caddy for Docker

Compare the three most popular reverse proxies for Docker and find the best fit for your self-hosted setup.

Networking12 min read
Docker Networks Explained for Self-Hosting

Understand how Docker networking works and how to configure networks for your self-hosted services.

Networking9 min read
Reverse Proxies in Docker: How They Actually Work

Demystify reverse proxies and understand how they route traffic to your Docker containers.

Networking10 min read
How to Expose Docker Services Safely to the Internet

Learn secure methods for making your self-hosted services accessible from anywhere without compromising security.

Networking11 min read
Let's Encrypt with Docker: Automatic TLS Explained

Set up automatic SSL/TLS certificates for your Docker services using Let's Encrypt.

Networking9 min read
Cloudflare Tunnels: Zero-Trust Remote Access

Expose your self-hosted services securely without port forwarding using Cloudflare Tunnels (cloudflared).

Networking9 min read
Running Docker Services Through VPN

Route container traffic through VPN providers using Gluetun for privacy, geo-unblocking, and secure connections.

Networking10 min read
Local DNS with Pi-hole and AdGuard Home

Set up network-wide ad blocking and custom local DNS records using Pi-hole or AdGuard Home in Docker.

Networking9 min read
Docker Network Isolation Patterns

Use multiple Docker networks to isolate services, protect databases, and implement defense in depth.

Networking8 min read
IPv6 in Docker Compose

Enable IPv6 support in Docker for dual-stack networking, with configuration examples and common pitfalls.

Networking7 min read

Security

Securing your self-hosted Docker services

8 articles

Operations

Backups, migrations, and maintenance

7 articles