/docker-syncthing

Syncthing as a docker image

Primary LanguageShellArtistic License 2.0Artistic-2.0

docker-syncthing

Run syncthing from a docker container

Usage

docker run -d --restart=always \
  -v /srv/sync:/data \
  -v /srv/syncthing:/config \
  -p 22000:22000  -p 21025:21025/udp -p 8384:8385 \
  --name syncthing \
  --user "$(id -u):$(id -g)" \
  --net host \
  --restart unless-stopped \
  #Name

If you want to add a new folder, make sure you set the path to something in /data.

docker-compose sample:

    syncthing:
	    build: docker-syncthing/.
	    volumes:
		    - /etc/config:/config
		    - /home/user:/data/home
	    network_mode: "host"
	    user: #Add user info
	    restart: unless-stopped