Updating Mattermost Docker (Running on Debian 12 VM Proxmox)

Summary
I have a home Proxmox Server. Inside that, I have a Debian VM for Docker. I host my mattermost server from that Docker.

My Need and Question
I want to update my server without losing its file and database. How to do this. I am worried about backing up and restoring the database. It’s a new server with only 6 users. But I wanna learn how to do it properly.

This guide doesn’t say anything about Docker Update.
https://docs.mattermost.com/upgrade/upgrading-mattermost-server.html

It will be really kind of you to guide me. Thank you.

https://docs.mattermost.com/install/install-docker.html#upgrade-from-mattermost-docker