STATE_FOLDER=/path/to/state/of/app/folder/on/the/host
DATA_FOLDER=/path/to/data/folder/on/the/host
WEBUI_PORT=[ port to access the webui on the host ]
RSLSYNC_USER_NAME=web_login_username
RSLSYNC_USER_PWD=web_login_password
mkdir -p $STATE_FOLDER
mkdir -p $DATA_FOLDER
docker run -d --name ResilioSync \
-p 127.0.0.1:$WEBUI_PORT:8888 -p 55555 \
-e RSLSYNC_USER_NAME=$RSLSYNC_USER_NAME \
-e RSLSYNC_USER_PWD=$RSLSYNC_USER_PWD \
-v $STATE_FOLDER:/root/.sync \
-v $DATA_FOLDER:/mnt/rslsync \
--restart on-failure \
dishuostec/resilio-sync
Go to localhost:$WEBUI_PORT in a web browser to access the webui.
If you do not want to limit the access to the webui to localhost, run instead:
docker run -d --name ResilioSync \
-p $WEBUI_PORT:8888 -p 55555 \
-e RSLSYNC_USER_NAME=$RSLSYNC_USER_NAME \
-e RSLSYNC_USER_PWD=$RSLSYNC_USER_PWD \
-v $STATE_FOLDER:/root/.sync \
-v $DATA_FOLDER:/mnt/rslsync \
--restart on-failure \
dishuostec/resilio-sync
Content type
Image
Digest
Size
17.2 MB
Last updated
over 5 years ago
docker pull dishuostec/resilio-sync