How to Install OnlyOffice on Your Synology NAS

How to Install OnlyOffice on Your Synology NAS

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.

💡Note: This guide works perfectly with the latest OnlyOffice v12.0.1 release.

  • 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”.

Synology NAS Install Docker DSM 7.2

  • 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.

OnlyOffice Synology NAS Set up 1 new 2023

  • 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.

OnlyOffice Synology NAS Set up 2 new 2023

  • STEP 6

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

OnlyOffice Synology NAS Set up 3 new 2023

  • STEP 7

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Install Onlyoffice“. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. 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.

OnlyOffice Synology NAS Set up 4 new 2023

  • STEP 8

After you click OK on STEP 7 a new warning pop up window will open. Click OK.

OnlyOffice Synology NAS Set up 4b new 2023

  • 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.

OnlyOffice Synology NAS Set up 5 new 2023

  • 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.

OnlyOffice Synology NAS Set up 6 new 2023

  • 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.

OnlyOffice Synology NAS Set up 7 new 2023

  • STEP 12

At the top right of the page click on your profile, then Personal Settings. Follow the instructions in the image below.

OnlyOffice Synology NAS Set up 8 new 2023

  • 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.

OnlyOffice Synology NAS Set up 9 new 2023 ONLYOFFICE

  • STEP 14

Click Advanced server settings. Follow the instructions in the image below.

OnlyOffice Synology NAS Set up 10 new 2023

  • 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.

OnlyOffice Synology NAS Set up 11 new 2023

  • 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.

OnlyOffice Synology NAS Set up 12 new 2023

  • STEP 17

I wrote something in a new document using OnlyOffice.

OnlyOffice Synology NAS Set up 13 new 2023

Same for .xlsx documents.

OnlyOffice Synology NAS Set up 14 new 2023

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