Codeberg is run by a German association, which defines its role in the bylaws to support FOSS (§2 in the bylaws). You can use their software Forgejo to run your own server.