Back to Browse

Docker Volumes Explained: Your Data NEVER Dies! (Persistence Demo with PostgreSQL)

38 views
Jun 2, 2026
17:20

🐳 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 formats

Video Formats

360pmp417.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Docker Volumes Explained: Your Data NEVER Dies! (Persistence Demo with PostgreSQL) | NatokHD