Articles with the tag:
Help Center
Document Server for Docker

Installing Integration Edition Document Server for Docker on a local server

Document Serverv.4.1 Document Server changelog

Version 4.2.11

Release date: 03/13/2017

New features


  • Added the possibility to completely hide About and the left toolbar (available to the licensed users only).



  • Fixed the issue when the JWT token without the permissions field crashes downloadAs.

Version 4.2.10

Release date: 02/20/2017


Embedded viewers

  • Fixed the default top position for the toolbar.


  • Fixed the availability of the chat and comments buttons for the editors without the license file.


  • Fixed the problem with JWT access tokens.

Version 4.2.9

Release date: 02/14/2017

New Features

Spreadsheet Editor

  • The Polish language translations for functions.


Spreadsheet Editor

  • Fixed the wrong order of elements in equations (bug #34029).

Version 4.2.8

Release date: 02/06/2017


Spreadsheet Editor

  • Fixed entering the characters with diacritical symbols (bug #33908)
  • Fixed the horizontal scroll when using a trackpad (bug #27197)


  • Allowed the interface customization using the plugins.


  • Minor fixes for logging and status codes.

Version 4.2.7

Release date: 02/01/2017


All Editors

  • Prevent editors from performing the save operation if there are no changes to save.

Spreadsheet Editor

  • Fixed error occurring when assembling files with Ranges in some rare cases.

Document conversion

  • Fixed errors occurring when converting from the XLSX to the CSV format.


  • Fixed server compilation if the PRODUCT_VERSION and BUILD_NUMBER variables are not defined.

Version 4.2.5

Release date: 01/16/2017


All Editors

  • Fixed a rare problem occurring when saving a file with a specific chart type.

Presentation Editor

  • Fixed a problem occurring when saving a file with the notes copied from Document Editor;
  • Fixed a problem occurring when saving a file with a chart copied from Presentation Editor.


  • Fixed a problem occurring when opened connection was not closed with close command received while performing some asynchronous actions.

Version 4.2.4

Release date: 01/09/2017


Document Editor

  • Fixed the problem with the changes missing when several users enter the text at the same time (bug #33726)
  • Fixed the bug with the cursor positioning after the InsertContent function is used.

Spreadsheet Editor

  • Fixed the Match formula return value in some cases (bug #33735).


  • Fixed the missing Asana-Math font in the default installation, needed for equations.

Version 4.2.3

Release date: 12/23/2016


Spreadsheet Editor

  • Fixed the usage of functions with references to the other sheets.

Presentation Editor

  • Fixed the timeout error appearing while printing some PPTX files.

Document conversion

  • Fixed the problem with conversion to PDF format when only the first document page was converted.


  • Without a valid license file the chat and comment buttons are unavailable, as well as editing the customer information and the logo image at the editor header is not allowed.

Version 4.2.2

Release date: 12/21/2016


Presentation Editor

  • Fixed the problem with opening password-protected presentations.

Version 4.2.1

Release date: 12/06/2016


Document Editor

  • Fixed the broken Insert number of page button;
  • Fixed the problem with the last hieroglyph duplicate;
  • Fixed the problem with changing the chart type from 2D to 3D (bug #33284).

Spreadsheet Editor

  • Fixed JavaScript error when adding a chart in IE and Edge (bug #33597);
  • Fixed the problem with an empty cell when changing sparklines (bug #33598).


  • Improved compatibility with the DOC format.

Version 4.2.0

Release date: 12/01/2016

New Features

All Editors

  • Added the possibility to set a dash type for shapes;
  • Redesigned the embedded viewers;
  • Better support of HiDPI systems;
  • Update bootstrap to version 3.3.7.

Document Editor

  • Added the possibility to set Fit to Page or Fit to Width as a default zoom value;
  • Ability to insert number of pages into the document;
  • Added the possibility to open and edit footnotes;
  • Remade version history. Added the possibility to hide minor features.

Spreadsheet Editor

  • Added the possibility to insert equations in Spreadsheet Editor;
  • Added the possibility to open and edit sparklines;
  • Added a new SUMIFS function;
  • Added the possibility to select data from the drop-down menu in the context menu;
  • Added a multiselection support;
  • Added the rotation of 3D charts;
  • Updated and improved the visual styles for all chart types;
  • Brought back the Freeze Panes option in the View Settings menu;
  • Added the new algorithm for calculating a cell height.

Presentation Editor

  • Added the possibility to set Fit to Width as a default zoom value;
  • Added the possibility to insert equations in Presentation Editor.


  • Updated nodejs from version 4.2.0 to the current LTS release: 6.9.1.


Spreadsheet Editor


Version 4.1.8

Release date: 11/03/2016



  • Minor fix for a better license compatibility with the Hide Menu functionality.

Version 4.1.7

Release date: 11/01/2016



  • Fixed a JavaScript error when opening a document in IE 9 and IE 10.

Version 4.1.6

Release date: 10/26/2016

New Features


  • Added the possibility to hide the menu bars in the editors using the config.

Version 4.1.5

Release date: 10/13/2016



  • Fixed copy-paste on MacOS Sierra.


  • Fixed the image load and OLE problems;
  • Viewers do not show plugins any more.

Version 4.1.4

Release date: 10/07/2016



  • ipfilter can use dns to lookup.

Version 4.1.3

Release date: 09/28/2016

New Features


  • Sample plugins are enabled by default.

Version 4.1.2

Release date: 09/22/2016

New Features


  • Switched to using PostgreSQL instead of MySQL on back-end;
  • Added the possibility to filter users using ipfilter.


  • Added whole new code handling text input. Better support for languages which use hieroglyphs;
  • Added whole new copy-paste which is better compatible with external sources.


  • Improvements in opening of all supported formats.


  • A lot small bugfixes in all product modules.

Version 4.0.3

Release date: 08/04/2016


  • Added the possibility to use full-toolbar mode in the editors with a standard license. Previously the users of standard license were forced to use compact toolbar only.

Version 4.0.2

Release date: 08/03/2016


Spreadsheet Editor

  • Fixed losing comments on second and subsequent worksheets (bug #32895);
  • Fixed losing empty values of data with format different from General in the autofilter (bug #32805).


  • Minor fixes.


Integration Edition allows you to install Document Server on your local server and integrate online editors with your web application.

Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.


  • Document Editor
  • Spreadsheet Editor
  • Presentation Editor
  • Documents application for iOS
  • Collaborative editing
  • Hieroglyph support
  • Support for all the popular formats: DOC, DOCX, TXT, ODT, RTF, ODP, EPUB, ODS, XLS, XLSX, CSV, PPTX, HTML

Integrating it with Community Server you will be able to:

  • view and edit files stored on Drive, Box, Dropbox, OneDrive, OwnCloud connected to ONLYOFFICE;
  • share files;
  • embed documents on a website;
  • manage access rights to documents.

This guide will show you how to install Document Server Docker version to your machine.

System requirements

  • CPU
    dual-core 2 GHz or better
  • RAM
    4 GB or more
  • HDD
    at least 2 GB of free space
  • Additional Requirements
    at least 2 GB of swap
  • OS
    amd64 Linux distribution with kernel version 3.10 or later
  • Additional Requirements
    • Docker: version 1.10 or later

Installing Document Server

You need the latest Docker version installed. If you do not have it, please see the Installation section on Docker website to learn how to get it.
Docker specifies Google DNS servers by default. If your Document Server is not going to have access to the Internet, we recommend that you change the default Docker DNS address to the address of your local DNS server. To do that go to the /etc/default/docker file and change the IP address in the following line to the IP address of a DNS server in your local network:

After you have Docker installed, run it and execute the following command:

sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 onlyoffice/documentserver-integration

Use this command if you wish to install Document Server separately. To install Document Server integrated with Community and Mail Servers, refer to the corresponding instructions below.

This will install Document Server and all the dependencies it needs (the list of what is being done by the script can be found here).

Automatic restart

To make Docker automatically restart Document Server containers on reboot, please use the --restart=always parameter in the docker run command:

sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver-integration

Storing data outside containers

All the data are stored in the specially-designated directories, data volumes, at the following location:

  • /var/log/onlyoffice for Document Server logs
  • /var/www/onlyoffice/Data for certificates
  • /var/lib/onlyoffice/documentserver/App_Data/cache/files for Document Server cache

To get access to your data from outside the container, you need to mount the volumes. It can be done by specifying the -v option in the docker run command.

sudo docker run -i -t -d -p 80:80 \
    -v /app/onlyoffice/DocumentServer/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files  \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver
sudo docker run -i -t -d -p 80:80 \
    -v /app/onlyoffice/DocumentServer/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files  \
    -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice  \
    -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver-integration
Please note, that in case you are trying to mount the folders which are not yet created, these folders will be created but the access to them will be limited. You will need to change their access rights manually.

Storing the data on the host machine allows you to easily update Document Server once the new version is released without losing your data.

Running Document Server using HTTPS

sudo docker run -i -t -d -p 443:443 \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver
sudo docker run -i -t -d -p 443:443 \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver-integration

Access to the onlyoffice application can be secured using SSL so as to prevent unauthorized access. While a CA certified SSL certificate allows for verification of trust via the CA, self signed certificates can also provide an equal level of trust verification as long as each client takes some additional steps to verify the identity of your website. Below the instructions on achieving this are provided.

To secure the application via SSL basically two things are needed:

  • Private key (.key)
  • SSL certificate (.crt)

So you need to create and install the following files:


When using CA certified certificates, these files are provided to you by the CA. When using self-signed certificates you need to generate these files yourself. Skip the following section if you are have CA certified SSL certificates.

Generation of self signed certificates

Generation of self-signed SSL certificates involves a simple 3 step procedure

STEP 1: Create the server private key
openssl genrsa -out onlyoffice.key 2048
STEP 2: Create the certificate signing request (CSR)
openssl req -new -key onlyoffice.key -out onlyoffice.csr
STEP 3: Sign the certificate using the private key and CSR
openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt

You have now generated an SSL certificate that's valid for 365 days.

Strengthening the server security

This section provides you with instructions to strengthen your server security.

To achieve this you need to generate stronger DHE parameters.

openssl dhparam -out dhparam.pem 2048
Installation of the SSL certificates

Out of the four files generated above, you need to install the onlyoffice.key, onlyoffice.crt and dhparam.pem files at the onlyoffice server. The CSR file is not needed, but do make sure you safely backup the file (in case you ever need it again).

The default path that the onlyoffice application is configured to look for the SSL certificates is at /var/www/onlyoffice/Data/certs, this can however be changed using the SSL_KEY_PATH, SSL_CERTIFICATE_PATH and SSL_DHPARAM_PATH configuration options.

The /var/www/onlyoffice/Data/ path is the path of the data store, which means that you have to create a folder named certs inside /app/onlyoffice/DocumentServer/data/ and copy the files into it and as a measure of security you will update the permission on the onlyoffice.key file to only be readable by the owner.

mkdir -p /app/onlyoffice/DocumentServer/data/certs
cp onlyoffice.key /app/onlyoffice/DocumentServer/data/certs/
cp onlyoffice.crt /app/onlyoffice/DocumentServer/data/certs/
cp dhparam.pem /app/onlyoffice/DocumentServer/data/certs/
chmod 400 /app/onlyoffice/DocumentServer/data/certs/onlyoffice.key

And restart Docker container:

sudo docker restart {{DOCUMENT_SERVER_ID}}

You are now just one step away from having our application secured.

Available configuration parameters
Please refer the docker run command options for the `--env-file` flag where you can specify all required environment variables in a single file. This will save you from writing a potentially long docker run command.

Below is the complete list of parameters that can be set using environment variables.

  • ONLYOFFICE_HTTPS_HSTS_ENABLED: Advanced configuration option for turning off the HSTS configuration. Applicable only when SSL is in use. Defaults to true.
  • ONLYOFFICE_HTTPS_HSTS_MAXAGE: Advanced configuration option for setting the HSTS max-age in the onlyoffice nginx vHost configuration. Applicable only when SSL is in use. Defaults to 31536000.
  • SSL_CERTIFICATE_PATH: The path to the SSL certificate to use. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.crt.
  • SSL_KEY_PATH: The path to the SSL certificate private key. Defaults to /var/www/onlyoffice/Data/certs/onlyoffice.key.
  • SSL_DHPARAM_PATH: The path to the Diffie-Hellman parameter. Defaults to /var/www/onlyoffice/Data/certs/dhparam.pem.
  • SSL_VERIFY_CLIENT: Enable verification of client certificates using the CA_CERTIFICATES_PATH file. Defaults to false.
  • POSTGRESQL_SERVER_HOST: The IP address or the name of the host where the PostgreSQL server is running.
  • POSTGRESQL_SERVER_PORT: The PostgreSQL server port number.
  • POSTGRESQL_SERVER_DB_NAME: The name of a PostgreSQL database to be created on the image startup.
  • POSTGRESQL_SERVER_USER: The new user name with superuser permissions for the PostgreSQL account.
  • POSTGRESQL_SERVER_PASS: The password set for the PostgreSQL account.
  • RABBITMQ_SERVER_HOST: The IP address or the name of the host where the RabbitMQ server is running.
  • RABBITMQ_SERVER_USER: The RabbitMQ server user name.
  • RABBITMQ_SERVER_PASS: The password set for the RabbitMQ account.
  • REDIS_SERVER_HOST: The IP address or the name of the host where the Redis server is running.
  • REDIS_SERVER_PORT: The Redis server port number.
  • NGINX_WORKER_PROCESSES: Defines the number of nginx worker processes.
  • NGINX_WORKER_CONNECTIONS: Sets the maximum number of simultaneous connections that can be opened by a nginx worker process.

Installing Document Server integrated with Community and Mail Servers

Document Server is a part of ONLYOFFICE Community Edition that comprises also Community Server and Mail Server. To install them, follow these easy steps:

STEP 1: Create the 'onlyoffice' network
docker network create --driver bridge onlyoffice

After that launch the containers on it using the 'docker run --net onlyoffice' option.

STEP 2: Install Document Server
sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-document-server \
        -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \
        -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice \
STEP 3: Install Mail Server
sudo docker run --net onlyoffice --privileged -i -t -d --restart=always --name onlyoffice-mail-server \
        -p 25:25 -p 143:143 -p 587:587 \
        -v /app/onlyoffice/MailServer/data:/var/vmail \
        -v /app/onlyoffice/MailServer/data/certs:/etc/pki/tls/mailserver \
        -v /app/onlyoffice/MailServer/logs:/var/log \
        -v /app/onlyoffice/MailServer/mysql:/var/lib/mysql \
        -h \

Where is your mail server hostname.

Your domain that will be used for maintaining correspondence must be valid and configured for this machine (i.e. it should have the appropriate A record in the DNS settings that points your domain name to the IP address of the machine where Mail Server is installed).
In the command above, the "" parameter must be understood as a service domain for Mail Server. It is usually specified in the MX record of the domain that will be used for maintaining correspondence. As a rule, the "" looks like
STEP 4: Install Community Server
sudo docker run --net onlyoffice -i -t -d --restart=always --name onlyoffice-community-server \
        -p 80:80 -p 5222:5222 -p 443:443 \
        -v /app/onlyoffice/CommunityServer/data:/var/www/onlyoffice/Data \
        -v /app/onlyoffice/CommunityServer/mysql:/var/lib/mysql \
        -v /app/onlyoffice/CommunityServer/logs:/var/log/onlyoffice \
        -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/DocumentServerData \
        -e DOCUMENT_SERVER_PORT_80_TCP_ADDR=onlyoffice-document-server \
        -e MAIL_SERVER_DB_HOST=onlyoffice-mail-server \

Alternatively, you can use docker-compose to install the whole ONLYOFFICE Community Edition at once. For the mail server correct work you need to specify its hostname ''.

STEP 1: Download the installation script file

Assuming you have docker-compose installed, execute the following command:

STEP 2: Install ONLYOFFICE Community Edition

Run the following command to do that:

bash -md

Registering your Integration Edition version

If you bought Integration Edition and received the license.lic file, you can place it to your installation to obtain the software full version.

When you are using the docker container, the license.lic file can be placed to any folder (e.g. /app/onlyoffice/DocumentServer/data/license.lic), but you will need to mount this folder when the container starts:

docker run -itd -p 80:80 \
-v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data \

After that your version of Integration Edition will become registered and full-featured.

Download Best editors on your website Let your site users view, edit and collaborate
on all types of text, spreadsheet and presentation files
You Might Also Like This: