You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB
YAML

# [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.
---
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 GroupID
- PUID=${PUID:-1024}
# for UserID
- PGID=${PGID:-100}
# Specify a timezone to use for example Europe/Amsterdam
- TZ=${TZ:-Europe/Amsterdam}
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
# Listening port (TCP)
- 22000:22000/tcp
# Listening port (UDP)
- 22000:22000/udp
# Protocol discovery
- 21027:21027/udp
restart: unless-stopped