29 lines
862 B
Django/Jinja
29 lines
862 B
Django/Jinja
services:
|
|
syncthing:
|
|
image: syncthing/syncthing
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=100
|
|
- TZ=Europe/Amsterdam
|
|
# Disable local discovery since server is not on local network
|
|
- STTRACE=
|
|
- STNODEFAULTFOLDER=true
|
|
- STNODEFAULTFOLDERROOT=true
|
|
- STNOUPGRADE=true
|
|
# Disable local discovery
|
|
- STGUIADDRESS=0.0.0.0:8384not on local network
|
|
- STLOCALANNOUNCEENABLED=false
|
|
- STGLOBALDISCOVERYENABLED=true
|
|
volumes:
|
|
- {{ syncthing_data_dir }}:/var/syncthing
|
|
ports:
|
|
- 8384:8384 # Web UI
|
|
- 22000:22000/tcp # TCP file transfers
|
|
- 22000:22000/udp # QUIC file transfers
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 3
|