This might be another good example of why using Symlinks in docker is a pretty good idea. Since UUID's can change on a new install, it could put OP back in this situation (although now he'd be wise to it). With Symlinks, you can keep them consistent across new installs, you just have to create your links before installing docker. That's what I did when I clean installed 6 earlier this month and it actually worked very well. In my situation, all of my "/config" directories (or in the case of Portainer, /data), are under /NAS/AppData. All of my Media, is under /NAS/Media... This makes setting up my symlinks from memory easy, and also if I want to install new containers, my paths are easy to set from memory. I've got a few other paths I link outside of AppData and Media, but since I know them and know they are consistent.. it's quite easy.
ken@openmediavault:~$ cd /NAS/
ken@openmediavault:/NAS$ ls
AppData Data Home Media Torrents
ken@openmediavault:/NAS$ cd /NAS/AppData
ken@openmediavault:/NAS/AppData$ ls
calibre filebrowser librespeed nextcloud onlyoffice piwigodb swag
emby heimdall navidrome nextclouddb piwigo portainer
ken@openmediavault:/NAS/AppData$ cd /NAS/Media
ken@openmediavault:/NAS/Media$ ls
Movies Music Photos Piwigo Random_Videos TV eBooks
ken@openmediavault:/NAS/Media$
Display More
Just something to think about.