Capstone: Shipping a Stack
Part of the Docker course
Every lesson so far taught one thing against a container that printed a string. That is how you learn a directive and it hides the part that is actually hard, which is that a real application is several containers that have to find each other, start in the right order, keep their data, and end up somewhere a different machine can reach.
You are going to build that. A small Go HTTP API talking to Postgres, in a multi-stage image that is small and runs as a non-root user, wired together with Compose so the API waits for the database to be genuinely ready, then tagged and pushed so a fresh machine can run the whole thing with one command.
Want to learn Docker Capstone: Shipping a Stack in a real environment?
Click below, get a fresh Linux box with Docker ready to go, and work through Capstone: Shipping a Stack hands-on with an AI tutor that knows your code.
Start this lessonCapstone: Shipping a StackWhat you'll learn
- Multi-stage Dockerfile
- Compose.yaml with two services
- Healthcheck and restart policy
- Tag and push
- Run elsewhere
Read this lesson in your language
All lessons in this course
13 lessons- 1What Is Docker20 min
- 2Your First Container25 min
- 3Images and the Dockerfile30 min
- 4Building Custom Images35 min
- 5Container Networking30 min
- 6Volumes and Persistence30 min
- 7Docker Compose35 min
- 8Multi-Stage Builds35 min
- 9Environment Variables and Secrets25 min
- 10Healthchecks and Restart Policies25 min
- 11Image Optimization and Security30 min
- 12Registries and Publishing25 min
- 13Capstone: Shipping a Stack50 min
