mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-18 15:25:41 +00:00
21 lines
990 B
Bash
21 lines
990 B
Bash
# Syncthing 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.
|
|
|
|
source ./.env
|
|
docker run -d \
|
|
--name=syncthing \
|
|
--hostname={{ project_name }} `# optional` `# Optionally the hostname can be defined.` \
|
|
-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 8384:8384 `# Application WebUI` \
|
|
-p 22000:22000 `# Listening port` \
|
|
-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
|