Chirpstack v3 to v4 upgrade

Hi,
What is best way to upgrade old chirpstack v3 to latest v4, so that settings and data are not lost during the upgrade process?

Iam using docker installation.

https://www.chirpstack.io/docs/v3-v4-migration.html