docker-bits/lsio/resilio-sync/docker-run.sh

20 lines
1.0 KiB
Bash
Raw Normal View History

2021-04-21 00:55:42 +00:00
# [Resilio-sync](https://www.resilio.com/individuals/) (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.
2021-04-10 10:16:29 +00:00
2023-04-26 00:53:18 +00:00
. ./.env
2021-04-10 10:16:29 +00:00
docker run -d \
--name=resilio-sync \
2022-04-02 00:45:58 +00:00
-e PUID=${PUID:-1024} `# for UserID` \
-e PGID=${PGID:-100} `# for GroupID` \
2023-02-26 14:51:38 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).` \
2021-04-10 10:16:29 +00:00
-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