DevOps Docker

Complete Docker Compose Tutorial – Practical Course for Developers and DevOps

Complete guide to Docker Compose: multi-container orchestration, networking, scaling, and NGINX reverse proxy.

Course description

Docker Compose: multi-container orchestration from basics to advanced

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.

What's in This Course

  • YAML structure and essential commands: up, down, ps, logs
  • Port mapping and bridge networking between containers
  • Service dependencies with depends_on and healthcheck
  • Restart policy: no, on-failure, always — when to use each
  • 3-Tier architecture with network isolation (Web / App / DB)
  • Scaling services and container replication
  • NGINX as reverse proxy: proxy_pass configuration and load balancing
  • Volumes for data persistence and shared volumes with DBMS
  • Separate .env files for production and testing

Practical Approach, Real-World Cases

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.

Who This Course Is For

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.

Lessons list

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.

Guarda lezione

Let's see how to configure NGINX for load balancing across multiple application containers in Docker Compose, distributing traffic efficiently among scaled service instances.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione

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.

Guarda lezione
Giovanni Pace

Giovanni Pace

Ingegnere Informatico · Pratola Peligna

  • 107 Courses
About the teacher

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.

This course includes

  • Lessons 16
  • Duration 2h 40m
  • Difficulty intermedio
  • Language it
  • Certificate No

Recently viewed