Files and storage, checked 2026-09-07

Syncthing: Docker configuration reference

Continuous, peer-to-peer file synchronization between two or more devices without a central server.

At a glance

Ports

Ports
PortWhat listensSource
8384GUI and REST API. Bound to 0.0.0.0 by default inside the container so it is reachable without host networking; the config's own GUI Listen Address falls back to 127.0.0.1 if STGUIADDRESS is unset.source for port 8384
22000Sync protocol, both TCP (direct connections) and UDP (QUIC).source for port 22000
21027UDP local discovery broadcasts (IPv4) and multicasts (IPv6). Only needed for LAN auto-discovery.source for port 21027

Environment variables

Environment variables
VariableRequiredWhat it doesExampleSource
PUIDNoUID Syncthing runs as inside the container. Defaults to 1000; set to match the owner of the mounted sync folder.1000source for PUID
PGIDNoGID Syncthing runs as, alongside PUID.1000source for PGID
STGUIADDRESSNoOverrides the GUI bind address baked into the image. Unset it (empty value) to fall back to whatever is configured in config.xml or the GUI itself.0.0.0.0:8384source for STGUIADDRESS
PCAPNoGrants additional Linux capabilities without running the container as root, using setcap(8) syntax.cap_chown,cap_fowner+epsource for PCAP

Volumes that must persist

Volumes
PathWhat is in itSource
/var/syncthingConfig, database and the default location for synced folders. Everything Syncthing needs to keep working across a redeploy.source for /var/syncthing

Behind a reverse proxy

Release timeline

Releases
VersionDateBreakingWhat changedSource
v2.1.32026-08-05NoPart of the 2.1 line: devices and folders can be grouped in the GUI, and HTTP/HTTPS CONNECT proxies are now supported alongside SOCKS.source for release v2.1.3
v2.1.22026-07-08No2.1 line maintenance release.source for release v2.1.2
v2.1.12026-06-02No2.1 line maintenance release: same major changes as 2.1.0, including GUI device/folder grouping and CONNECT proxy support.source for release v2.1.1

If it is not coming up

Read from the upstream documentation, repository and container registry by Keita Emsden on 2026-09-07. Every row links the page it came from. Upstream changes without telling anyone, so check the source link before you rely on a value.

Other app references

All app references