Install Syncthing with Docker Compose
(Written August 2025)
Abstract
How to install Syncthing so you can sync files between devices and take remote backups.
Prerequisites
Hardware requirements
- RAM: Minimum 512Mb.
- CPU: Minimum 1 cores, recommended 2 cores.
Install Syncthing
Rights needed for Syncthing to access the data folder:
Paste:
services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
hostname: syncthing #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- /home/docker/config:/config
- /home/docker/data:/data1
#- /path/to/data2:/data2
ports:
- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
restart: unless-stopped
Configure Syncthing
Go to the GUI:
http://
Set a password for login:
To add the /data1 share:
Give your Syncthing a name (this makes it easier to manage devices)
Add a remote device
You will need to fill in a device ID:
You can find the device ID of the remote Syncthing server:
On your remote Syncthing server, you will need to accept it:
To select the data folder that you wish to sync.
Go to your local Syncthing server and click edit:
Click the folder (you can add an encryption password)
On the remote cluster, accept the request: