I am using docker-compose, django+ onlyoffice integration
Hi @greatios,
Instead of editing local.json directly, create a separate config file called local-production-linux.json with only the settings you want to customize. This file is not part of the default Document Server package, so it won’t be overwritten on container rebuilds or updates.
Document Server uses node-config, which loads configs in this order:
default.json → production-linux.json → local.json → local-production-linux.json
Each subsequent file overrides the previous ones, so local-production-linux.json has the highest priority.
In your docker-compose.yml, mount it as a volume:
volumes:
- ./local-production-linux.json:/etc/onlyoffice/documentserver/local-production-linux.json
Put only the settings you need to change in that file. They will persist across restarts and survive updates.
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.