Skip to content

dhjensen/sync-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resilio Sync

https://www.resilio.com

Sync uses peer-to-peer technology to provide fast, private file sharing for teams and individuals. By skipping the cloud, transfers can be significantly faster because files take the shortest path between devices. Sync does not store your information on servers in the cloud, avoiding cloud privacy concerns.

Usage

DATA_FOLDER=/path/to/data/folder/on/the/host
WEBUI_PORT=<port to access the webui on the host>

mkdir -p $DATA_FOLDER

docker run -d --name Sync \
           -p 127.0.0.1:$WEBUI_PORT:8888 \
           -p 55555/tcp \
           -p 55555/udp \
           -v $DATA_FOLDER:/mnt/sync \
           --restart on-failure \
           resilio/sync

Note: you can use our official Docker image resilio/sync hosted on hub.docker.com or build image locally:

docker build -t dhjensen/sync .

To make sure the base image is updated before building add --pull

docker build --pull -t dhjensen/sync .

Be sure to always run docker container with --restart parameter to allow Docker daemon to handle Sync container (launch at startup as well as restart it in case of failure).

Go to http://localhost:$WEBUI_PORT in a web browser to access the webui.

If you need to run Sync under specific user inside your container - use --user parameter or set PUID and PGID env vars for container.

Running Sync in docker container via docker-compose is described here.

Volume

Ports

  • 8888 - Webui port
  • 55555 - Listening port (both TCP and UDP) for Sync traffic (you can change it, but in this case change it in Sync settings as well)

Find more info here about ports used by Sync.

LAN access

If you do not want to limit the access to the webui, do not specify localhost address in -p parameter:

docker run -d --name Sync \
           -p $WEBUI_PORT:8888 \
           -p 55555/tcp \
           -p 55555/udp \
           -v $DATA_FOLDER:/mnt/sync \
           --restart on-failure \
           resilio/sync

Extra directories

If you need to mount extra directories, mount them in /mnt/mounted_folders:

docker run -d --name Sync \
           -p 127.0.0.1:$WEBUI_PORT:8888 \
           -p 55555/tcp \
           -p 55555/udp \
           -v $DATA_FOLDER:/mnt/sync \
           -v <OTHER_DIR>:/mnt/mounted_folders/<DIR_NAME> \
           -v <OTHER_DIR2>:/mnt/mounted_folders/<DIR_NAME2> \
           --restart on-failure \
           resilio/sync

Do not create directories at the root of /mnt/mounted_folders from the Sync webui since they will not be mounted to the host.

Miscellaneous

- Additional info and various guides can be found in our help center

About

Resilio Sync docker image

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 57.8%
  • Dockerfile 42.2%