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 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.
How to use a local Docker image in Docker Compose without pushing to a registry. Build context, pull_policy: never, and fixing 'manifest not found' errors.
Understand the difference between Docker and Docker Compose, and when to use each.
Got 'E: Unable to locate package docker-compose-plugin' on Ubuntu or Debian? Add Docker's official APT repo and install in 5 steps. Works on Ubuntu 20.04/22.04/24.04 and Debian 11/12.
Step-by-step guide to install Docker and Docker Compose on Ubuntu 22.04, 24.04, and macOS. Includes troubleshooting for common errors.
Run a self-hosted Docker registry with Docker Compose. Covers the official registry:2 image, TLS via Caddy, basic auth, storage, and pushing/pulling images.
How to ensure your Docker Compose services start automatically when your server reboots.
Step-by-step guide to self-hosting Supabase using Docker Compose. Run the full Supabase stack (Studio, API, Auth, Database) locally or on a VPS.
How to update your Docker Compose services to the latest image versions.