Demo: one-command Shop stack
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
- Write
compose.yamlwithdb,keycloak, andapp. - Add health checks for
dbandkeycloak; useservice_healthyconditions. - Move passwords to
.env; commit.env.example; add.envto.gitignore. - Mount seed SQL into the database init folder (
/docker-entrypoint-initdb.d) and rundocker compose up. - Planned mistake:
depends_onwithout health checks, so the app crashes with "connection refused"; fix withcondition: service_healthy. - Write the README steps and have a partner follow them.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.