NOTE: This is a fork, not the official repository. The aim of this fork is to open up the Web UI on port 55556, as well as provide environment variables that control the username and the password.
Synchronizes data folders between containers using BitTorrent Sync.
docker run -d tutum/btsync <folder1> <folder2> ... <foldern>
Replacing <folderi>
with any folder you want to synchronize. Each key will be generated hashing the name of the folder, so this implementation will only scale in LAN mode (as is set in the image).
Modify the volumes_from list with the name of the service you want to sync and the target_num_containers with the number of containers from the service you want to synchronize. If the target service belongs to another stack its service unique name is its service name plus the service stack name, separated by ".".
By default tutum/btsync will syncrhonize all volumes mounted on the containers being created, but you can define the folders to sync as metioned above. All traffic goes through the private network created by Weave.
Another way to use this image in Tutum is to define volumes in the btsync service and make the target service/s do a volumes_from to the service. In this case the target service/s will share all volumes defined in the btsync service.
- When a file is added to the shared folder, the changes start syncing immediately. However, it can take up to ten seconds to be seen by the other peer.
- If you change a file inside a shared folder, sync will start after the file is saved and/or closed.
- If several people make changes to the same file it is only saved the latest version of the file.
## License
bittorrent Sync has a proprietary license included in:
http://www.bittorrent.com/legal/privacy http://www.bittorrent.com/legal/terms-of-use http://www.bittorrent.com/legal/eula