mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-16 12:13:26 +00:00
20 lines
971 B
Bash
20 lines
971 B
Bash
|
# Resilio-sync (formerly BitTorrent Sync) uses the BitTorrent protocol to sync
|
||
|
# files and folders between all of your devices. There are both free and paid
|
||
|
# versions, this container supports both. There is an official sync image but we
|
||
|
# created this one as it supports user mapping to simplify permissions for
|
||
|
# volumes.
|
||
|
|
||
|
source ./.env
|
||
|
docker run -d \
|
||
|
--name=resilio-sync \
|
||
|
-e PUID=${PUID:-1024} `# for GroupID` \
|
||
|
-e PGID=${PGID:-100} `# for UserID` \
|
||
|
-e TZ=Europe/Amsterdam `# Specify a timezone to use for example Europe/Amsterdam` \
|
||
|
-p 8888:8888 `# WebUI` \
|
||
|
-p 55555:55555 `# Sync Port.` \
|
||
|
-v ${BASEDIR:-/volume1/docker}/resilio-sync/config:/config `# Where resilio-sync should store its config file.` \
|
||
|
-v ${BASEDIR:-/volume1/docker}/resilio-sync/downloads:/downloads `# Folder for downloads/cache.` \
|
||
|
-v ${BASEDIR:-/volume1/docker}/resilio-sync/sync:/sync `# Sync folders root.` \
|
||
|
--restart unless-stopped \
|
||
|
ghcr.io/linuxserver/resilio-sync
|