Convert Docker Run to Docker Compose
A guide and examples for converting complex docker run commands into clean docker-compose.yml files.
A guide and examples for converting complex docker run commands into clean docker-compose.yml files.
Reference for extra_hosts in Docker Compose. Map host-gateway to reach host.docker.internal on Linux, mock DNS, use IPv6, and fix common errors.
How networks work in Docker Compose — the default network, service name DNS, custom and external networks, isolating a database, and why one container cannot reach another.
How port mapping works in Docker Compose — ports vs expose, host:container syntax, binding to an interface, ranges, and why your port isn't reachable.
How to restart Docker Compose services and set restart policies — restart vs up, the no/always/on-failure/unless-stopped options, and restarting one service.
Copy-paste ready Docker Compose templates for common stacks: Node+Postgres, Python+Redis, WordPress, and more.
How Docker Compose volumes work — named volumes vs bind mounts, syntax, persisting data, sharing data between services, and backups, with copy-paste examples.
Learn how to use 'docker compose watch' for hot-reloading and faster development cycles.
Use a locally built Docker image in Compose without pushing to a registry. build vs image, pull_policy: never, and fixing 'manifest not found' errors.
Understand the difference between Docker and Docker Compose, and when to use each.
Fix 'E: Unable to locate package docker-compose-plugin' in 5 commands. Copy-paste steps for Ubuntu 20.04/22.04/24.04 and Debian 11/12, plus the 3 error variants (no installation candidate, dpkg overwrite, docker-compose-v2).
Step-by-step guide to install Docker and Docker Compose on Ubuntu 22.04, 24.04, and macOS. Includes troubleshooting for common errors.
A working docker-compose.yml for Komga, the open-source comics, manga, and eBook server — persistent volumes, port 25600, permissions, and a Caddy HTTPS example.
Run your own private Docker registry with Docker Compose. registry:2 setup, HTTPS via Caddy, basic auth, listing images, and garbage collection.
How to ensure your Docker Compose services start automatically when your server reboots.
Self-host Supabase with Docker Compose: clone the repo, set JWT_SECRET, ANON_KEY and SERVICE_ROLE_KEY, start all 7 services, and reach Studio on port 3000 and the API gateway on port 8000.
A working docker-compose.yml for Trilium Notes — the persistent data volume, port 8080, a Caddy HTTPS example, and the reverse-proxy setting that stops Trilium from crashing on startup.
How to update your Docker Compose services to the latest image versions.