I recently tested the most recommended wiki software and I settled on Wiki.js. Trivial to setup with docker-compose. It stores everything in its database but can continually dump it in various formats and places. I have it dump to the local filesystem. It spits out Markdown files. It can run on SQLite but it defaults to Postgres which provides better search. It’s got simple RBAC too.