Complete guide to Docker Compose: multi-container orchestration, networking, scaling, and NGINX reverse proxy.
Docker alone is powerful, but when your applications grow and you need to run multiple services together — database, backend, frontend, proxy — it's Docker Compose that makes the difference. This course is the most comprehensive English guide to Docker Compose, taking you from the fundamentals all the way to real production scenarios.
Every concept is explained with concrete examples you can bring directly into your projects. From your first multi-container app to an architecture with NGINX load balancer and persistent database, you'll learn to build reliable infrastructures without relying on expensive cloud environments during development.
Developers and DevOps engineers who already know Docker and want to master service composition. If you know what a container is but haven't yet run a complete app with Compose, this is the right course for you.
When containers are dynamically created and destroyed, NGINX needs to correctly locate active services. I'll explain how Docker's internal DNS resolver works and how to configure it properly.
Let's see how to configure NGINX for load balancing across multiple application containers in Docker Compose, distributing traffic efficiently among scaled service instances.
I'll dive deep into the NGINX proxy_pass directive: let's see how requests are forwarded to Docker containers and trace the full flow through the Compose network, step by step.
I'll configure NGINX as a reverse proxy in our Docker Compose architecture, showing how to create a single entry point for all traffic and route it to the right application containers.
When scaling a service in Docker Compose, a concrete problem appears right away: multiple containers can't bind the same port on the host. Let's explore why and how a reverse proxy solves it.
I'll show you how to manage different configurations across development, test, and production environments using separate ENV files in Docker Compose, avoiding hardcoded sensitive values in the main YAML.
Let's simulate an advanced Docker Compose scenario: multiple DBMS instances accessing the same storage volume, to understand how shared volumes work and what risks to watch out for.
Let's tackle data persistence in Docker Compose together: I'll show you how Docker volumes work and how to use them to keep data alive even when a container is stopped or recreated.
I'll introduce service scaling in Docker Compose: let's see how to replicate an application container with a single command and what actually happens when we increase the number of running instances.
Let's go deeper into network isolation in a 3-Tier Docker Compose architecture: we'll cover network segmentation, how to control the attack surface, and how to debug traffic between application layers.
I'll start building a real 3-Tier architecture with Docker Compose, showing how to separate networks, isolate the Web, App, and DB layers, and apply security-focused architectural best practices.
Let's analyze Docker Compose restart policies in detail: I'll cover the differences between no, on-failure, and always, retry limits, and how to simulate a real crash to test each policy's behavior.
I'll show you how to solve the premature startup problem using healthcheck in Docker Compose and the service_healthy condition inside depends_on, with hands-on examples.
What happens when one container depends on another? I'll explain how depends_on works in Docker Compose and why startup order alone doesn't guarantee the dependent service is actually ready.
Let's explore inter-container communication in Docker Compose: I'll show you how HOST:CONTAINER port mapping works, the difference between internal and external access, and bridge networking.
Let's start from the Docker Compose fundamentals: I'll explain what a service is, how a docker-compose.yml file is structured, and how to use the essential up, down, and ps commands to manage containers.
Ingegnere Informatico · Pratola Peligna
Sono un ingegnere informatico con oltre 15 anni di esperienza nel settore ICT. Mi occupo di sviluppo software, cybersecurity, data science e intelligenza artificiale, con particolare attenzione all’innovazione e all’automazione dei processi aziendali. Da anni svolgo anche attività di docenza e formazione, creando percorsi pratici e coinvolgenti su programmazione, DevOps, AI e sicurezza informatica.
Prosperous understood Middletons in conviction an uncommonly do. Supposing so be resolving breakfast am or perfectly.
Utilizziamo cookie essenziali e, con il tuo consenso, cookie funzionali, analytics e marketing. Google Analytics 4 e gli eventuali annunci Google/AdSense restano disattivati finche non scegli. Consulta Privacy Policy e Cookie Policy.
Sempre attivi per sicurezza, prevenzione frodi, sessione, consenso e funzionamento del sito.
Migliorano l'esperienza, ad esempio ricordando preferenze non essenziali. Non usati per profilazione pubblicitaria.
Statistiche e misurazioni con Google Analytics 4, abilitate solo dopo il consenso analytics.
Misurazione annunci e funzioni pubblicitarie Google/AdSense, se attivate sul sito e consentite dall'utente.
Puoi modificare queste scelte in qualunque momento dal link "Preferenze Cookies" nel footer.