picture: Jack Wallen
One issue to know about Linux is that or not it’s an exceedingly flexible platform. If there may be whatever you want accomplished, it could possibly do it. And the creation of containers has made that most likely clear. The one-two combination of Linux and Docker makes deploying applications for your community really essential.
i am going to stroll you during the technique of deploying a Docker container for the ONLYOFFICE server. With this certain container, that you may have your very own cloud-primarily based workplace suite. by way of deploying the ONLYOFFICE server in this method, you don’t have to be anxious about deciding upon up the entire dependencies for a full-blown installation. it be all there able to go in a single Docker container.
The gadget necessities for this particular container are just a little bigger than your ordinary container. Why? as a result of here’s a complete cloud-based mostly office suite, so you’re looking at the following requirements:
- RAM: 2 GB or greater
- Swap file: as a minimum 2 GB
- HDD: at least 2 GB of free area
- Supported distributions: sixty four-bit crimson Hat, CentOS or different appropriate distribution with kernel edition three.eight or later, 64-bit Debian, Ubuntu or other compatible distribution with kernel edition 3.8 or later
- Docker: version 1.4.1. or later
I might be installation on Ubuntu sixteen.10 with the belief you have Docker already running and are capable of deploying containers. i’ll additionally count on you have got access to a user that’s a member of the docker neighborhood (so that you don’t have to set up the use of sudo).
Deploying the container
There are three alternative ways to install this container. i’ll show all three. Open up your terminal window and prepare to class.
if you can spare port eighty, the standard deployment command is:
docker run -i -t -d -p 80:80 onlyoffice/communityserver
Of route, you will need to connect the container to a volume, so facts is saved on the host directory (and never in the container). To do that, create a directory on the Docker server with the command:
sudo mkdir -p /var/www/onlyoffice/information
as soon as that directory is created, the command to install the container (connected to the newly created directory), would be:
sudo docker run -i -t -d -p eighty:80 -v /choose/onlyoffice/statistics:/var/www/onlyoffice/data onlyoffice/communityserver
If port 80 is never purchasable, that you may run it on a unique port like so:
sudo docker run -i -t -d -p 8080:80 -v /decide/onlyoffice/data:/var/www/onlyoffice/data onlyoffice/communityserver
notice: The above command will direct host port 8080 to container port 80.
in the event you should keep away from unauthorized entry to the records on your ONLYOFFICE container, that you would be able to install it the usage of SSL. Do be aware that this may require the introduction of the following two SSL keys:
The command to set up ONLYOFFICE with SSL is:
docker run -i -t -d -p eighty:80 -p 443:443 -v /choose/onlyoffice/information:/var/www/onlyoffice/information onlyoffice/communityserver
Connecting to ONLYOFFICE
once the container is deployed, you are able to aspect a browser to the IP tackle of your Docker server. Open up a browser to http://SERVER_IP (where SERVER_IP is the IP handle or domain of your server) and you may be greeted via the ONLYOFFICE Portal (figure A).
in an effort to register the portal, you have to category an e-mail address, enter/assess a password, and click to accept the EULA. After you may have filled out the information, click on continue and also you’re able to use ONLYOFFICE.
Congratulations, you now have a full-blown ONLYOFFICE server up and running, because of Linux and Docker. Deploying such an impressive tool couldn’t maybe be any simpler.