Skip to content
skillbld
Docker · 12-day planAll days
Day 12 of 12 40 min

Put everything together in a small shop app with a website, an API and a cache. Build a tiny production web image with a multi-stage build, route API calls through nginx, wait for a healthy cache, scale the API to three copies, watch what happens when a service fails, and get ready to ship.

By the end of today you can

  • Read a multi-service compose.yaml with builds, healthchecks and restart policies
  • Use a multi-stage build to keep build tools out of the final image
  • Route requests through an nginx reverse proxy to an API
  • Scale a service and see requests spread across copies
  • Diagnose a failing service and tag and push images

What's inside

  • 7 sections
  • 3 diagrams and mind maps
  • 6 code examples you can run
  • 5-question quiz
  1. 1The architecture
  2. 2A multi-stage build
  3. 3Launch
  4. 4Scale the API
  5. 5When things break
  6. 6Shipping it
  7. 7Course recap

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 12: Project: A Three-Service App · Docker · SkillBld