Public Repository

Last pushed: 2 years ago
Short Description
syncthing in a container
Full Description

syncthing in a container

Upon running the container for the first time it will:

  • perform an install of the latest linux-amd64 version of syncthing
  • generate a config
  • alter the config to have the gui listen on 0.0.0.0
  • set a username and password

exposed ports

  • 8080 - gui
  • 22000 - sync protocol listen address
  • 21025/udp - global discovery

to get the username/password, check the logs

docker logs syncthing

configs

configs are stored in /syncthing. Create a volume directory on the host somewhere or in a config container. You'll also want to create volumes for anything you want to sync.

examples

# create a config container
docker run -d -v /syncthing --name syncthing-config busybox true

# grab the image
docker pull tr3buchet/syncthing

# install and run syncthing
docker run -d -p 8080:8080 -p 22000:22000 -p 21025:21025/udp --volumes-from syncthing-config -v /home/tr3buchet/sync/shares:/data --name syncthing tr3buchet/syncthing

# update syncthing or add a new volume
docker stop syncthing
docker rm -v syncthing
docker run -d -p 8080:8080 -p 22000:22000 -p 21025:21025/udp --volumes-from syncthing-config -v /home/tr3buchet/sync/shares:/data --name syncthing tr3buchet/syncthing
Docker Pull Command
Owner
tr3buchet

Comments (0)