Overleaf Community Edition (self-hosted)
Self-hosted server Replaces it Active Open source · AGPL-3.0 Linux Self-hostable
You give upYou host it, comments and track changes are only in the paid Server Pro, and compiles aren't sandboxed, so every user must be trusted.
Imports your data: download projects from Overleaf as a zip and upload them
Self-host
Runs on your own Linux server, with Docker files in the repo. Setup docs are on github.com.