Skip to content
Ameen Abozaid
Planned lessonJNR-050-L05

Demo: one-command Shop stack

  • Lesson 5 of 5
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

start Shop, PostgreSQL, and Keycloak with one command. Prepares JNR-050-LAB1.

Draft outline details

Step by step

  1. Write compose.yaml with db, keycloak, and app.
  2. Add health checks for db and keycloak; use service_healthy conditions.
  3. Move passwords to .env; commit .env.example; add .env to .gitignore.
  4. Mount seed SQL into the database init folder (/docker-entrypoint-initdb.d) and run docker compose up.
  5. Planned mistake: depends_on without health checks, so the app crashes with "connection refused"; fix with condition: service_healthy.
  6. Write the README steps and have a partner follow them.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.