mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-06 23:26:17 +02:00
add btsync
This commit is contained in:
parent
11be4e4502
commit
c9a43d22a6
25
btsync/Dockerfile
Normal file
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
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
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"
|
||||||
|
}
|
||||||
|
}
|
8
btsync/docker-compose.yml
Normal file
8
btsync/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
btsync:
|
||||||
|
image: vimagick/btsync
|
||||||
|
ports:
|
||||||
|
- "8888:8888"
|
||||||
|
- "55555:55555"
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
restart: always
|
Loading…
x
Reference in New Issue
Block a user