How to Install Syncthing on Your Synology NAS

How to Install Syncthing on Your Synology NAS

Syncthing replaces proprietary sync and cloud services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it’s transmitted over the Internet. In this step by step guide I will show you how to install Syncthing on your Synology NAS using Portainer.

  • STEP 1

Please Support My Work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • STEP 3

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create 3 new folders and name it syncthing, data1, data2. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.

1 Syncthing Docker Synology NAS How to

  • STEP 5

Now create one new folder inside the syncthing folder that you created at STEP 4 and name it config. Follow the instructions in the image below.

2 Syncthing Docker Synology NAS How to

  • STEP 6

Log into Portainer using your username and password. On the Portainer left sidebar click on Stacks. After you click on Stacks, a new screen will open. Click + Add Stack. In the Name field type in syncthing. Follow the instructions in the image below.

Note: In the Portainer Stacks Web editor Copy Paste the code below.

version: "2.1"
services:
  syncthing:
    image: ghcr.io/linuxserver/syncthing
    container_name: syncthing
    hostname: syncthing #optional
    volumes:
      - /volume1/docker/syncthing/config:/config
      - /volume1/docker/data1:/data1
      - /volume1/docker/data2:/data2
    ports:
      - 8384:8384
      - 22000:22000
      - 21027:21027/udp
    environment:
      - PUID=1026
      - PGID=100
      - TZ=Europe/Bucharest
    restart: always

3 Syncthing Docker Synology NAS How to
After you paste the code in the Web editor, change the value for TZ (Select your current Time Zone from this list).
After you paste the code in the Web editor, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)
Note: If you have your docker folder in a different volume, then change /volume1/docker/syncthing/config according to your settings. For example: /volume2/docker/syncthing/config or /volume3/docker/syncthing/config etc.

  • STEP 7

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

4 Syncthing Docker Synology NAS How to

  • STEP 8

If everything goes right, you will see this message at the top right of your screen: “Stack successfully deployed“.

5 Syncthing Docker Synology NAS How to

  • STEP 9

Go back to STEP 1 or you will deal with karma 🙂.

  • STEP 10

Now open your browser and type in http://Synology-ip-address:8384/ Follow the instructions in the image below.
Note: Once you logged in for the first time, remember to add a GUI Authentication User and Password.

6 Syncthing Docker Synology NAS How to

Enjoy your Syncthing!

Note: Find out how to update Syncthing container with the latest image.
Note: Can I run Docker on my Synology NAS? See the supported models.

This post was updated on Monday / February 1st, 2021 at 10:33 PM