This lab is currently in Beta, content may be updated as we refine the material
LABINTERMEDIATE

Docker Compose with Data Persistence Lab

Orchestrate the real TaskFlow stack with Docker Compose: frontend, backend, PostgreSQL, and Redis. Configure named volumes and prove data survives a full container teardown.

60 minutes
platform-engineering/containers
Docker Compose with Data Persistence Lab - Platform Engineering Hands-On Lab Icon
Share this Lab

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)

🟡 Beta bootcamp lab. Hands-on instructions, check scripts, and solve scripts are in place. Lab is part of the running TaskFlow project that grows across all 21 weeks of the bootcamp.

Build on the real TaskFlow repository you containerized in the previous lab (dockerize-taskflow-frontend-backend). You'll write a docker-compose.yml from scratch that orchestrates all four services (frontend, backend, PostgreSQL, Redis) with proper networking, health checks, and persistent volumes.

The real backend has database and auth libraries pinned in requirements.txt but no code that uses them yet, that integration lands in a later bootcamp week. So instead of faking a connection the app doesn't have, you'll stand up PostgreSQL and Redis as real infrastructure and verify each one directly with psql and redis-cli. In the final task, you'll tear the whole stack down, bring it back up, and prove your data survived, then 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
  • Service dependencies and health checks (depends_on with condition: service_healthy)
  • Docker networking between containers
  • Backup strategies for named volumes
  • Verifying data persistence across a full container teardown and restart

What You'll Learn

Write a Docker Compose file that defines multi-container application services

Add PostgreSQL and Redis services with named volumes for data persistence

Configure 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

dockerdocker-composecontainersdata-persistencevolumesorchestration

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

Buying for a team? Private corporate training is available for up to 15 learners.View team training
MonthlyQuarterly
Try Premium free for 7 days →

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

$59/month

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
  • Bootcamp participation
  • New content access
Recommended

Premium

Full access, including unlimited hosted labs

$99/month

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)
  • Lab AI Assistant
  • Accelerator bootcamps with live office hours
  • 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 Courses

Just 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