A tool you host yourself

Nextcloud

Source code: github.com/nextcloud/server

Reading the record: its licence, updates, setup and sources.