Book 2 · Lesson 2.8

Docker Compose networking

  • Map host ports to compose services
  • Explain kafka:9092 vs localhost:9092
  • Navigate infra/docker/ layout

Prerequisites: 2.2

Local Team Radar runs as containers on a shared network — service DNS names differ from host localhost.

Compose map

Explore ComposeNetworkMap — click kafka, postgres, redis, ingestion.

FromConnect to Kafka as
Host (curl, IDE)localhost:9092
Container (ingestion)kafka:9092

Base infra: infra/docker/docker-compose.yml — Postgres, Redis, Kafka.

Full stack adds millipede-ingestion, llm-worker, analyzer via project compose files.

Teach-back prompt

Why expose Postgres port 5432 to the host in dev?

Kafka + PG + Redis stack

Lesson 2.8 check

1. Inside compose, Kafka hostname is…