Docker-nextcloud: Adding onlyoffice-document-server - Unknown error

I’m running and added a mariadb container for the database. It is working perfectly fine.
I’m trying to add a container based on onlyoffice/documentserver:latest to use the online editing integration with the ONLYOFFICE app. I took the configuration for the container out of the docker-compose.yml file provided by OnlyOffice ( The container is up and reachable over HTTPs and I did update the URL for ONLYOFFICE in the configuration section in NextCloud.
The settings were accepted by the form and I’m able to start online editing for office documents by clicking on them, or I can create new ones with the (+) button.
The ONLYOFFICE component does load and is displayed, however I get a popup with the message Unknown error. which leaves me with a OK button that redirects me to the document list.

I’m not sure where I can look and debug since I have no idea what the error is caused by.
Any hints are greatly appreciated.
Has anyone successfully deployed docker-nextcloud with onlyoffice/documentserver or is it better to switch to the docker-compose.yml file provided by OnlyOffice?

With kind regards


This is how we’re running it:

1 Like

Thank you @aptalca, I had to adopt the header config since I’m using traefik as the edge-router instead of nginx based on this post:

Beside that, your config is working for me now.

Does linux server maintain a Docker 00 image, or is this rolled into your nextcloud docker?

No, we run the official image, see the link from @aptalca above