advanced~2h

Docker & Docker Compose

You now have several services, a database, Redis, and Kafka — all needing to run together. This module is how to stop starting each one manually, in the right order, by hand.

Learning objectives

  • Beginner: Write a Dockerfile that packages a Spring Boot service as a runnable container image.
  • Intermediate: Write a docker-compose.yml that brings up the service alongside Postgres, Redis, and Kafka with correct startup ordering.
  • Advanced: Configure Compose networking so services discover each other by service name rather than hardcoded IPs, matching how they'd resolve each other in production.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.

Docker & Docker Compose

Next Step

Continue to Logging← Back to all Spring Boot chapters