├── rockstor-sync ├── README.md ├── Dockerfile └── btsync.conf ├── run_sync ├── btsync.conf ├── Dockerfile └── README.md /rockstor-sync/README.md: -------------------------------------------------------------------------------- 1 | BitTorrent Sync 2 | =============== 3 | 4 | Custom version for Rockstor NAS 5 | -------------------------------------------------------------------------------- /run_sync: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | mkdir -p /mnt/sync/folders 4 | mkdir -p /mnt/sync/config 5 | 6 | exec /usr/sbin/btsync --nodaemon $* 7 | -------------------------------------------------------------------------------- /rockstor-sync/Dockerfile: -------------------------------------------------------------------------------- 1 | # BitTorrent Sync 2 | # 3 | # VERSION 0.1 4 | 5 | FROM bittorrent/sync:latest 6 | MAINTAINER Bertrand Chazot 7 | LABEL com.getsync.vendor="Rockstor" 8 | 9 | COPY btsync.conf /etc/ 10 | -------------------------------------------------------------------------------- /btsync.conf: -------------------------------------------------------------------------------- 1 | { 2 | "listening_port" : 55555, 3 | "storage_path" : "/mnt/sync/config", 4 | "vendor" : "docker", 5 | "display_new_version": false, 6 | "webui" : 7 | { 8 | "listen" : "0.0.0.0:8888", 9 | "allow_empty_password" : false, 10 | "directory_root" : "/mnt/", 11 | "directory_root_policy" : "belowroot", 12 | "dir_whitelist" : [ "/mnt/sync/folders", "/mnt/mounted_folders" ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /rockstor-sync/btsync.conf: -------------------------------------------------------------------------------- 1 | { 2 | "listening_port" : 55555, 3 | "storage_path" : "/mnt/sync/config", 4 | "vendor" : "Rockstor", 5 | "display_new_version": false, 6 | "webui" : 7 | { 8 | "listen" : "0.0.0.0:8888", 9 | "allow_empty_password" : false, 10 | "directory_root" : "/mnt/", 11 | "directory_root_policy" : "belowroot", 12 | "dir_whitelist" : [ "/mnt/sync/folders", "/mnt/Rockstor-Shares" ] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # BitTorrent Sync 2 | # 3 | # VERSION 0.1 4 | 5 | FROM ubuntu:15.04 6 | MAINTAINER Bertrand Chazot 7 | LABEL com.getsync.version="2.3.8" 8 | 9 | ADD https://download-cdn.getsync.com/2.3.8/linux-x64/BitTorrent-Sync_x64.tar.gz /tmp/sync.tgz 10 | RUN tar -xf /tmp/sync.tgz -C /usr/sbin btsync && rm -f /tmp/sync.tgz 11 | 12 | COPY btsync.conf /etc/ 13 | COPY run_sync /opt/ 14 | 15 | EXPOSE 8888 16 | EXPOSE 55555 17 | 18 | VOLUME /mnt/sync 19 | 20 | ENTRYPOINT ["/opt/run_sync"] 21 | CMD ["--log", "--config", "/etc/btsync.conf"] 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | BitTorrent Sync (deprecated) 2 | =============== 3 | 4 | Please note, that this image is outdated and is no longer supported and will stay with Sync version 2.3.8. For supported version please use [Resilio Sync image](https://hub.docker.com/r/resilio/sync/). New Github repository can be found [here](https://github.com/bt-sync/sync-docker). 5 | 6 | # About 7 | 8 | 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. 9 | 10 | # Usage 11 | 12 | DATA_FOLDER=/path/to/data/folder/on/the/host 13 | WEBUI_PORT=[ port to access the webui on the host ] 14 | 15 | mkdir -p $DATA_FOLDER 16 | 17 | docker run -d --name Sync \ 18 | -p 127.0.0.1:$WEBUI_PORT:8888 -p 55555 \ 19 | -v $DATA_FOLDER:/mnt/sync \ 20 | --restart on-failure \ 21 | bittorrent/sync 22 | 23 | Go to localhost:$WEBUI_PORT in a web browser to access the webui. 24 | 25 | #### LAN access 26 | 27 | If you do not want to limit the access to the webui to localhost, run instead: 28 | 29 | docker run -d --name Sync \ 30 | -p $WEBUI_PORT:8888 -p 55555 \ 31 | -v $DATA_FOLDER:/mnt/sync \ 32 | --restart on-failure \ 33 | bittorrent/sync 34 | 35 | #### Extra directories 36 | 37 | If you need to mount extra directories, mount them in /mnt/mounted_folders: 38 | 39 | docker run -d --name Sync \ 40 | -p 127.0.0.1:$WEBUI_PORT:8888 -p 55555 \ 41 | -v $DATA_FOLDER:/mnt/sync \ 42 | -v :/mnt/mounted_folders/ \ 43 | -v :/mnt/mounted_folders/ \ 44 | --restart on-failure \ 45 | bittorrent/sync 46 | 47 | Do not create directories at the root of mounted_folders from the Sync webui since this new folder will not be mounted on the host. 48 | 49 | # Volume 50 | 51 | * /mnt/sync - State files and Sync folders 52 | 53 | # Ports 54 | 55 | * 8888 - Webui 56 | * 55555 - Listening port for Sync traffic 57 | --------------------------------------------------------------------------------