Docker Volumes Explained: Your Data NEVER Dies! (Persistence Demo with PostgreSQL)
π³ Ever lost ALL your database data just because you ran "docker compose down"? In this video, I'll show you EXACTLY why that happens β and how Docker Named Volumes fix it permanently. We build a real full-stack app (Node.js + PostgreSQL) from scratch and run through a live demo so you can SEE the difference between data loss and data persistence with your own eyes. βββββββββββββββββββββββββββββββ β±οΈ TIMESTAMPS βββββββββββββββββββββββββββββββ 00:00 - Intro: The problem with Docker data 01:30 - Project overview: BookShelf app (Node.js + PostgreSQL) 03:00 - DEMO 1: Without volumes β data vanishes after container delete 06:00 - Docker volume creation & inspection (docker volume inspect) 09:00 - DEMO 2: With named volumes β data survives container deletion 13:00 - How volumes work under the hood (/var/lib/docker/volumes/) 15:30 - Volume backup & cleanup commands 17:00 - Recap & what to learn next βββββββββββββββββββββββββββββββ π¦ WHAT YOU'LL LEARN βββββββββββββββββββββββββββββββ β Why Docker containers lose data on deletion β What Docker Named Volumes are and how they work β How to create, inspect, and manage volumes β The difference between bind mounts vs named volumes β How to persist PostgreSQL data across container restarts β Volume backup and cleanup strategies βββββββββββββββββββββββββββββββ π§ TECH STACK βββββββββββββββββββββββββββββββ - Docker + Docker Compose - PostgreSQL 15 - Node.js + Express - Named Volumes (local driver) βββββββββββββββββββββββββββββββ π SOURCE CODE βββββββββββββββββββββββββββββββ β GitHub:https://github.com/anulsasidharan/BookShelf-Persistant-docker-volume βββββββββββββββββββββββββββββββ π KEY COMMANDS IN THIS VIDEO βββββββββββββββββββββββββββββββ docker volume create bookshelf_postgres_data docker volume inspect bookshelf_postgres_data docker volume ls docker compose up -d docker compose down docker compose down --volumes βββββββββββββββββββββββββββββββ πΊ MORE FROM ORIONVEXA βββββββββββββββββββββββββββββββ πΌ LinkedIn: https://linkedin.com/in/anulsasidharan π GitHub: https://github.com/anulsasidharan βββββββββββββββββββββββββββββββ If this helped you, drop a β on the repo and smash that SUBSCRIBE button β more DevOps and AI engineering content dropping every week! #Docker #DevOps #DockerVolumes #PostgreSQL #DockerCompose #CloudNative #Kubernetes #ContainerDevops #LearnDocker #BackendDevelopment #NodeJS #DatabasePersistence #DockerTutorial #SoftwareEngineering #CloudComputing #TechTutorial #CodingForBeginners #DevOpsEngineer #OrionVexa #Linux #OpenSource #AWS #Programming #Python #WebDevelopment
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.