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
|
|
|
|
|
|
|
---
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
syncthing:
|
|
|
|
image: ghcr.io/linuxserver/syncthing
|
|
|
|
container_name: syncthing
|
|
|
|
# Optionally the hostname can be defined.
|
|
|
|
hostname: {{ project_name }} # optional
|
|
|
|
environment:
|
|
|
|
# for UserID
|
2022-04-02 00:45:58 +00:00
|
|
|
- PUID=${PUID:-1024}
|
|
|
|
# for GroupID
|
2021-04-10 10:16:29 +00:00
|
|
|
- PGID=${PGID:-100}
|
|
|
|
# Specify a timezone to use for example Europe/Amsterdam
|
2021-04-13 00:58:58 +00:00
|
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
2021-04-10 10:16:29 +00:00
|
|
|
volumes:
|
|
|
|
# Configuration files.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/syncthing/config:/config
|
|
|
|
# Data1
|
|
|
|
- ${BASEDIR:-/volume1/docker}/syncthing/data1:/data1
|
|
|
|
# Data2
|
|
|
|
- ${BASEDIR:-/volume1/docker}/syncthing/data2:/data2
|
|
|
|
ports:
|
|
|
|
# Application WebUI
|
|
|
|
- 8384:8384
|
2021-05-04 00:47:48 +00:00
|
|
|
# Listening port (TCP)
|
|
|
|
- 22000:22000/tcp
|
|
|
|
# Listening port (UDP)
|
|
|
|
- 22000:22000/udp
|
2021-04-10 10:16:29 +00:00
|
|
|
# Protocol discovery
|
|
|
|
- 21027:21027/udp
|
|
|
|
restart: unless-stopped
|