Docker Compose with Data Persistence Lab
Continue with your TaskFlow fork and prove its already-wired PostgreSQL and Redis persistence really holds up.
Lab Overview
🛠Lab from the Platform Engineering Bootcamp. Used in Week 7. Bootcamp landing page: https://academy.tekanaid.com/bootcamps/platform-engineering-bootcamp Parent course(s):
- Week 7: Docker Fundamentals (slug: docker-fundamentals)
Build on your TaskFlow fork from the previous Containerize TaskFlow lab. TaskFlow's Compose baseline already wires up PostgreSQL and a real Redis-backed task-list cache, both connected and healthy from the moment you start the stack. Rather than re-adding infrastructure that's already there, this lab has you prove it: break PostgreSQL's named volume on purpose and watch data disappear, then fix it; validate the real Redis cache's population, invalidation, and graceful degradation when Redis goes down; break the backend's health-aware startup dependency and watch it race ahead of a database that isn't there yet, then restore it.
In the final task, you'll tear the whole stack down, bring it back up, prove your data survived, and compare your Compose file against the repo's own original.
By the end of this lab, you'll understand:
- Docker Compose service orchestration with build contexts
- Named volumes for data persistence, and what happens when they're missing
- A real application-level Redis cache: population, invalidation, and graceful degradation
- Service dependencies and health checks (depends_on with condition: service_healthy)
- Docker networking between containers
- Verifying data persistence across a full container teardown and restart
What You'll Learn
Operate a Docker Compose file that defines multi-container application services
Diagnose data loss caused by a missing named volume, then fix it
Validate a real application-level Redis cache, including its fallback behavior
Configure and prove service dependencies and health check conditions using depends_on
Verify that data persists across container restarts using Docker volumes
Manage a complete development environment with docker compose up and down
Prerequisites
dockerize-taskflow-frontend-backend
Technologies Covered
Choose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).
Pro
All courses, with lab scripts to run on your own machine
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Full access to all courses
- Lab scripts to download and run on your own machine (hosted labs not included)
- Progress tracking
- Certificate of completion
- Community access
- Self-paced bootcamps
- Premium puzzle library not included (5 free puzzles available)
- New content access
Premium
Full access, including unlimited hosted labs
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Everything in Pro
- Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
- Full access to the puzzle library
- Lab AI Assistant
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.
Browse CoursesJust exploring? Start free, no account needed
Three free ways to start. All bridge into the paid Premium catalog when you're ready.
Not ready to commit? The crash course is email-only. No academy account required.
Ready to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now