https://forums.zotero.org/discussion/73721/zotero-self-hoste...
https://www.reddit.com/r/zotero/comments/d270kv/zotero_datas...
https://github.com/zotero/dataserver/issues/105
https://softwarerecs.stackexchange.com/questions/48335/foss-...
https://groups.google.com/g/zotero-dev/c/9FdSz0kIG_4?pli=1
Unfortunately, there is no officially supported way to do this. The official dataserver package does not have an instruction: https://github.com/zotero/dataserver
There is an unofficial package from 5 years ago https://hub.docker.com/r/facciolo/zotero_dataserver-docker