I made this https://github.com/jeena/fxsync-docker/ which supports PostgreSQL but sadly they broke the upstream images in newer versions.
Someone did the work to rebuild the images and fix the problems in new versions, looks promising: https://github.com/porelli/firefox-sync
Are there the same problems with Thunderbird as with Firefox?