
Module 15 Lesson 2: Capstone: The Infrastructure
Laying the groundwork. Build the complex Docker Compose and networking YAML that will power the GlobalHealth Connect platform.
12 articles

Laying the groundwork. Build the complex Docker Compose and networking YAML that will power the GlobalHealth Connect platform.
Stop typing long commands. Discover Docker Compose, the tool that allows you to define and run entire multi-container applications with a single YAML file.
Hands-on with YAML. Learn the structure of a Compose file and build a working stack with a web server and a database in minutes.
Connecting the dots automatically. Learn how Docker Compose handles networking and persistent storage, making complex configurations simple.
Master the commands for managing multi-container stacks. Learn how to view aggregate logs, stop services safely, and rebuild images on the fly.
The capstone of the basics. Build a complete Voting App architecture with a Python worker, a Redis queue, a Postgres DB, and a Node.js results page.
Master the timing of your stack. Learn how 'depends_on' works and how to use 'wait-for-it' scripts to ensure your app only starts after the database is truly ready.
More power. Learn how to use the --scale flag to run multiple instances of a service and how Docker Compose manages the load balancing internally.
Build a self-healing stack. Learn how to configure advanced healthchecks and restart policies directly in your Compose file to automate recovery from crashes.
Dry out your YAML. Learn how to use anchors, aliases, and extension fields to avoid repeating the same configuration across multiple services.
Master the environment split. Learn how to use multiple Compose files to handle development, staging, and production differences without repeating code.
Master the local dev stack. Learn how to use Docker Compose to manage dependencies like databases and caches alongside your application code.