OnlyOffice 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 etc. In this step by step guide I will show you how to install OnlyOffice on your Synology NAS using Docker.
STEP 1
Please Support My work by Making a Donation.
STEP 2
Install Nextcloud using my Standard Guide or my Docker Guide. If you already have Nextcloud installed on your Synology NAS, skip this STEP.
STEP 3
Install Docker via Synology “Package Center”.
STEP 4
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it onlyoffice. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 5
Now create two new folders inside the onlyoffice folder that you created at STEP 4. Name them data and logs. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 6
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.
STEP 7
Once you click on User-defined script, a new window will open. Follow the instructions below:
- General: In the Task field type in “Install Onlyoffice“. Uncheck the “Enabled” option. Select root User.
- Schedule: Select Run on the following date then select “Do not repeat“.
- Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=OnlyOffice \
-p 8467:80 \
-v /volume1/docker/onlyoffice/logs:/var/log/onlyoffice \
-v /volume1/docker/onlyoffice/data:/var/www/onlyoffice/Data \
-e JWT_ENABLED=true \
-e JWT_SECRET=MariushostingMariushostingMari13 \
--restart always \
onlyoffice/documentserver
Note: Before you paste the code above in the Web editor area below, change the value for JWT_SECRET and add your own JWT SECRET. MariushostingMariushostingMari13 is an example for a JWT_SECRET. You should invent your own Value. Add 32Â random characters, both letters and numbers.
STEP 8
After you click OK on STEP 7 a new warning pop up window will open. Click OK.
STEP 9
After you click OK on STEP 8, select your “Install OnlyOffice” Task then click the “Run” tab. You will be asked to run Install OnlyOffice – click Yes. Follow the instructions in the image below.
STEP 10
Log into your Nextcloud account. At the top right of the page click on your profile, then + Apps. Follow the instructions in the image below.
STEP 11
After you click on + Apps at STEP 10, click on the search icon and search for “OnlyOffice“. When OnlyOffice is found , click Download and enable. Follow the instructions in the image below.
STEP 12
At the top right of the page click on your profile, then Personal Settings. Follow the instructions in the image below.
STEP 13
You will find the ONLYOFFICE app in the menu on the left sidebar, just under Administration; click on it. In the ONLYOFFICE Docs address field type in your Local NAS IP followed by :8467 In the Secret key field type in your own JWT_SECRET password that you have previously created at STEP 7. Click Save. Follow the instructions in the image below.
STEP 14
Click Advanced server settings. Follow the instructions in the image below.
STEP 15
At this point you can select the formats for which you want OnlyOffice to be the default application. After you select the favorite formats, click Save. Follow the instructions in the image below.
STEP 16
Now you can open all your files and edit them in real time using OnlyOffice. Click New Document. Follow the instructions in the image below.
STEP 17
I wrote something in a new document using OnlyOffice.
Same for .xlsx documents.
Note: If you want to run the OnlyOffice container over HTTPS, check How to Run Docker Containers Over HTTPS. In order to make OnlyOffice work via HTTPS, it’s mandatory to activate WebSocket. Enjoy your OnlyOffice integrated with Nextcloud!
Note: This guide is compatible with Docker – Nextcloud – compatible Synology NAS devices and DSM 7.2
Note: Nextcloud together with the OnlyOffice document server present themselves as a very interesting alternative to Synology Office.
Note: Find out how to update the OnlyOffice container with the latest image.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.
This post was updated on Sunday / February 12th, 2023 at 11:58 PM