How to deploy and test the new version of ONLYOFFICE Document Server

Looking to replace Microsoft Office or Google Workspaces? ONLYOFFICE has the potential to be a perfect solution.

Image: pinkypill/iStock

ONLYOFFICE is one of many options for those looking to host their own alternative to Google Workspaces. Recently, ONLYOFFICE launched version 7 of its platform, which includes some exciting new features like an integrated form builder. Along with other features such as Projects, CRM, Mail, Contacts and Documents, ONLYOFFICE could be a perfect solution for those looking to integrate such a tool internally.

SEE: Linux Turns 30: Celebrating the Open Source Operating System (Free PDF) (TechRepublic)

But how to deploy ONLYOFFICE? Believe it or not, it’s actually quite simple…with the help of an installer script and Docker.

Let me show you how.

What you will need

For this to work you will need a Linux server (I will demo on Ubuntu Server 20.04) and a user with sudo privileges. That’s it, let’s get to work.

How to install Docker

The first thing to do is to install Docker. Connect to your server and install the necessary dependencies with:
sudo apt-get install ca-certificates curl gnupg lsb-release -y
Once this installation is complete, add the Docker GPG key:
curl -fsSL | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Add the required Docker repository with the command:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Update apt and install Docker-ce with:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli -y

You will then need to add your user to the docker group (so you can deploy containers without sudo, which is a security risk) with:
sudo usermod -aG docker $USER
Log out and log back in for the changes to take effect.

How to deploy ONLYOFFICE

Download the installation script with the command:
Run the script with the command:
sudo bash
If you are deploying ONLYOFFICE on a domain, the command would be:
sudo bash --md DOMAIN
Where DOMAIN is your FQDN.

The script will take some time to complete (because the images to upload are over 1 GB). After the script completes, you will then need to give the containers time to reach a running state. After a few minutes, open a web browser and point it to http://SERVER (where SERVER is either the IP address or domain of your hosting server).

You will be greeted with a progress indicator letting you know that it will take some time to complete. Expect 5-20 minutes for this to complete. Once done, you will be presented with the configuration window (Figure A).

Figure A

The ONLYOFFICE configuration window.
The ONLYOFFICE configuration window.

Be sure to fill in the necessary information, check the box to agree to the terms, then click Continue. This will take you to the ONLYOFFICE main window (Figure B), where you can start starting the tires of the new deployment.

Figure B

ONLYOFFICE is ready to use.
ONLYOFFICE is ready to use.

And that’s all there is to installing ONLYOFFICE on an on-premises data center server. Enjoy this exciting new release.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech tips for professionals from Jack Wallen.