ONLYOFFICE 7.0: online forms, password protection in sheets, collaboration improvements and much more
ONLYOFFICE 7.0 released

Installing plugins in docker

The instructions for adding new plugins to the document server are not really practical for docker installations, it seems as you will have to reinstall the plugins each time the container is re-created. Mounting /var/www/onlyoffice/documentserver/sdkjs-plugins as a bind mount isn’t feasible, because the existing directory contents will be obscured from within the container.

For now, what I am trying is to install git within the container as it is just a single plugin I want to install for now and this is basically for testing. But in the long run, this doesn’t look like a feasible solution, as docker containers are not designed to be persistent, instead, that’s what you have named volumes or bind mounts for. What would be the canonical way of adding new plugins?

Hello,
You can mount the plugin directory /var/www/onlyoffice/documentserver/sdkjs-plugins/ to host in order to not lose the plugins.

For example,
docker run -i -t -d -p 80:80 --restart=always -v /app/sdkjs-plugins/:/var/www/onlyoffice/documentserver/sdkjs-plugins/ onlyoffice/documentserver

Thanks, but in that case, the existing content of that directory as it is shipped with the docker image will be obscured, as the docker documentation says. The problem is that out of the box the directory is already populated with several plugins.

You can re-download all the default plugins.
https://api.onlyoffice.com/plugin/example/