1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 00:08:49 +00:00

add btsync

This commit is contained in:
kev 2016-04-14 11:19:08 +08:00
parent 11be4e4502
commit c9a43d22a6
4 changed files with 53 additions and 0 deletions

25
btsync/Dockerfile Normal file

@ -0,0 +1,25 @@
#
# Dockerfile for btsync
#
FROM debian
MAINTAINER kev <noreply@datageek.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl \
&& curl -sSL https://download-cdn.getsync.com/stable/linux-x64/BitTorrent-Sync_x64.tar.gz | tar xz -C /usr/bin/ btsync \
&& apt-get purge -y --auto-remove curl \
&& rm -rf /var/lib/apt/lists/*
COPY config.json /etc/btsync/
ENV STORAGE_PATH /data/.syncsystem
ENV DIRECTORY_ROOT /data/syncaod
VOLUME /etc/btsync /data
EXPOSE 8888 55555
CMD set -xe \
&& mkdir -p "$STORAGE_PATH" "$DIRECTORY_ROOT" \
&& btsync --nodaemon --config /etc/btsync/config.json

7
btsync/README.md Normal file

@ -0,0 +1,7 @@
btsync
======
[BitTorrent Sync][1] is a fast, simple, and secure file syncing for IT and individuals.
[1]: https://www.getsync.com/

13
btsync/config.json Normal file

@ -0,0 +1,13 @@
{
"device_name": "BitTorrent Sync Server",
"listening_port": 55555,
"storage_path": "/data/.syncsystem",
"pid_file": "/data/.syncsystem/btsync.pid",
"use_upnp": false,
"download_limit": 0,
"upload_limit": 0,
"webui": {
"listen": "0.0.0.0:8888",
"directory_root": "/data/syncaod"
}
}

@ -0,0 +1,8 @@
btsync:
image: vimagick/btsync
ports:
- "8888:8888"
- "55555:55555"
volumes:
- ./data:/data
restart: always