Exercise · Data: volumes and bind mounts · lesson 4 of 7
Exercise: keep the Postgres data
Sooner or later the shop's database container gets removed: during an image update or by mistake. For the database to survive that, its files must live in a named volume, not in the container itself.