2021-04-21 00:55:42 +00:00
|
|
|
# [Syncthing](https://syncthing.net) replaces proprietary sync and cloud
|
|
|
|
# services with something open, trustworthy and decentralized. Your data is your
|
|
|
|
# data alone and you deserve to choose where it is stored, if it is shared with
|
|
|
|
# some third party and how it's transmitted over the Internet.
|
2021-04-10 10:16:29 +00:00
|
|
|
|
|
|
|
source ./.env
|
|
|
|
docker run -d \
|
|
|
|
--name=syncthing \
|
|
|
|
--hostname={{ project_name }} `# optional` `# Optionally the hostname can be defined.` \
|
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 8384:8384 `# Application WebUI` \
|
2021-05-04 00:47:48 +00:00
|
|
|
-p 22000:22000/tcp `# Listening port (TCP)` \
|
|
|
|
-p 22000:22000/udp `# Listening port (UDP)` \
|
2021-04-10 10:16:29 +00:00
|
|
|
-p 21027:21027/udp `# Protocol discovery` \
|
|
|
|
-v ${BASEDIR:-/volume1/docker}/syncthing/config:/config `# Configuration files.` \
|
|
|
|
-v ${BASEDIR:-/volume1/docker}/syncthing/data1:/data1 `# Data1` \
|
|
|
|
-v ${BASEDIR:-/volume1/docker}/syncthing/data2:/data2 `# Data2` \
|
|
|
|
--restart unless-stopped \
|
|
|
|
ghcr.io/linuxserver/syncthing
|