The easiest way to install ONLYOFFICE Docs is to use Docker. Execute the following command:
sudo docker run -i -t -d -p 80:80 --restart=always onlyoffice/documentserver
If you want to install ONLYOFFICE Docs on the same machine where your Nextcloud server is installed, you’ll need to change the default port used by ONLYOFFICE Docs (both ONLYOFFICE Docs and Nextcloud work on port 80 by default).
When installing ONLYOFFICE Docs using Docker, you can easily change the mapping port with the following command:
sudo docker run -i -t -d -p <PORT_NUMBER>:80 --restart=always onlyoffice/documentserver
Where <PORT_NUMBER>
is the number of port you want ONLYOFFICE Docs to use.
To find more detailed instructions on how to install ONLYOFFICE Docs using Docker, you can refer to this article.
To make sure that ONLYOFFICE Docs is installed successfully, enter the IP address and, optionally, port (if it has been changed during the installation) in your browser address bar, e.g. http://192.168.3.202:81
- the ONLYOFFICE Docs welcome page should open.