Docker · 12-day planAll days
Day 12 of 12 40 minMulti-stageHealthchecksScaling
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
- 1The architecture
- 2A multi-stage build
- 3Launch
- 4Scale the API
- 5When things break
- 6Shipping it
- 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