How do you handle persistent storage for databases?
Use Docker volumes. Define a named volume in the Compose file and mount it to the container's data directory. This ensures data survives container restarts or removal. You can also use bind mounts for development to sync live code changes