Now there is a Firefox View that can send tabs to other devices and recover tabs from history, etc.
https://www.reddit.com/r/selfhosted/comments/r4nso8/selfhost_your_own_firefox_sync_server/
Looks like this project in Python makes it easier and is already dockerized:
https://github.com/crazy-max/docker-firefox-syncserver