Exercise 1 of 8 · Docker Compose · About 12 min
The checkout stack
Start two real services and the tools that observe them. Prove that all four local interfaces respond.
In Codespaces, wait for Workspace ready and open a terminal in labs/observability. For local Docker, download and extract the kit, then open its baodium-observability folder.
Before you run it
Which connections need a published host port, and which can use Docker’s internal network? Sketch checkout → payment and both telemetry paths before starting.
Codespaces, or Docker on your machine
Use the course overview to create a GitHub Codespace; wait for its startup task and open a terminal in labs/observability. Alternatively, install Docker with Compose and Node.js 20+, extract the downloaded kit and open its baodium-observability directory.
Codespaces opens a real workspace in GitHub. Sign-in is required; account quotas and billing apply. Wait for “Workspace ready”, then return here. Keep forwarded ports private. Stop or delete the Codespace when finished.
node lab.mjs doctorThe Docker server version and a successful Compose configuration check. If the daemon is unavailable, start Docker before continuing.
Help with this exercise
Run docker compose ps and docker compose logs --tail 30. If a published port is occupied, stop only this project or change the BAODIUM_*_PORT environment variables in your terminal.
Need a hint or a troubleshooting path?
Run docker compose ps and docker compose logs --tail 30. If a published port is occupied, stop only this project or change the BAODIUM_*_PORT environment variables in your terminal.
Check a common misconception
A running container is not proof that its dependencies or telemetry work. The launcher checks real requests and exported signals after startup.
Before you move on
- What to keep
- Keep reports/baseline.json and reports/session.json. Identify the successful cross-service trace check and the actual tool addresses.
- What to explain
- Describe the request path separately from the metrics scrape and trace export paths. Payment can stay internal because checkout shares its Compose network.
- A question to take further
- If Grafana loads but its panels are empty, which connection would you investigate first, and what would falsify your hypothesis?
Write what you found
Explain why payment has no published host port even though checkout can call it.
Stop the stack when you finish
Continue to the next exercise with the stack running. When finished, stop and remove only this lab’s Compose services and volumes.
node lab.mjs down