Public | Automated Build

Last pushed: 10 days ago
Short Description
synchronizes files and folders; with customizable UID and GID
Full Description

Syncthing in a Container

Runs Syncthing within a container as user:group of your choice.


https://github.com/wmark/docker-syncthing

Run It

Docker

The default uid:gid is 1000:100.
You can optionally change them using environment variables SYNCTHING_UID or SYNCTHING_GID or both.

A quick and dirty instance is run like this:

docker run --rm --name "my_sync" \
  -p …:22000:22000 -p …:21025:21025/udp \
  -v ${HOME}/.config/syncthing:/home/syncthing/.config/syncthing \
  wmark/syncthing

Though setting a hostname and exposing the web interface (port 32080)
will improve your experience.

If you run syncthing for more than one user you will most probably want
something like this:

docker run --rm --name "my_sync" \
  --hostname="backup.spam.company" \
  -p …:22000:22000 -p …:21025:21025/udp -p …:32080:8080 \
  -e SYNCTHING_UID=1001 -e SYNCTHING_GID=122 \
  -v /var/customer/spam.company/backup:/data/backup \
  -v /var/customer/spam.company/share:/data/share \
  wmark/syncthing
Docker Pull Command
Owner
wmark
Source Repository