Giter Site home page Giter Site logo

docker-btsync's Introduction

Fork update:

To run with a btsync.conf outside of the image:

docker build -t ekinsokmen/btsync .
docker run -v /home/btsync:/root/btsync:rw -v ~/config/btsync/:/etc/btsync:rw ekinsokmen/btsync

Bittorrent Sync Docker Container

This is a simple docker file to setup a bittorrent sync server. Just

  • Create btsync.conf
  • Build the container
  • Run the container
  • Browse to the BTSync Web UI
  • Add a shared folder

If you pass the -v flag to the docker run command, you can share the files with the host OS. This is good for sharing with Owncloud and similar.

Set it up

cd btsync
vi btsync.conf # See example at end of README
sudo docker pull ubuntu
sudo docker build -t mattwilliamson/btsync .
sudo docker run -d -v /var/btsync:/var/btsync:rw mattwilliamson/btsync

matt@ks208738:~/btsync$ sudo docker ps
ID                  IMAGE                          COMMAND                CREATED             STATUS              PORTS
80eff0864e83        mattwilliamson/btsync:latest   /usr/lib/btsync/btsy   3 seconds ago       Up 3 seconds        49154->3369/udp, 49155->8888 

Browse to http://$myserverhostname:49155/gui/ or whatever port maps to 8888 and add your shared folder.

Sample btsync.conf:

{
    "device_name": "My Server",
    "listening_port" : 3369, 
    "storage_path" : "/root/btsync",
    "check_for_updates" : false, 
    "use_upnp" : false,
    "download_limit" : 0, 
    "upload_limit" : 0, 
    "webui" :
    {
        "listen" : "0.0.0.0:8888",
        "login" : "webusername",
        "password" : "supersecr3t"
    } 
}

docker-btsync's People

Contributors

ekinsokmen avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.