Moving and upgrading

Dear all!
I just wanted to make sure, my plans are correct:
I need to repair the docker environment in my server due to some errors. So all containers need to be made new.
at the same time I would like to upgrade to mattermost enterprise version and upgrade to postgres 17.5
Now I am using mattermost team and postgres 15.13:

other containers are easy to reinstall: Clamav, Postfix and nginx.
My planned way:

Old system:
Upgrade to enterprise version first.
Backup all yaml files
Backup postgres 15.13 database
Backup mattermost data directory

Delete all containers
Completely Delete docker environment

Reinstall docker envirionment
Recreate orginal paths

Reeinstall Postgres 17.5
Import Database - Analyze Verbose

Install Mattermost enterprise
Import Mattermost data Directory

reinstall all the other containers.

Since the rest of the envrionment stays the same - I would use all the old yaml files and all things should be fine right?

Any red flags ? Any suggestions?