Integrate Self-Hosted ONLYOFFICE Editors with Nextcloud Using Docker

When I first tried integrating ONLYOFFICE editors into my self-hosted Nextcloud setup, I assumed it would be a quick, one-evening project. I was wrong, it ended up taking several evenings of trial and error. The root of my frustrations? I installed the wrong component of the ONLYOFFICE suite.
This guide aims to save you that time by walking you through the correct setup of ONLYOFFICE Document Server using Docker, and integrating it with an existing Nextcloud instance.