Not recommended as it will be a constant maintenance and upgrade cycle to keep it working with Firefox but you can actually setup your own Firefox server stack (not just sync, but profiles and account everything):
https://github.com/jackyzy823/fxa-selfhosting
I've heard a lot of good regarding linkwarden.