Files
dotfiles/config/ansible/tasks/servers/services/syncthing/docker-compose.yml.j2
Menno van Leeuwen b5447dc0ec
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 17s
Nix Format Check / check-format (push) Successful in 1m2s
Python Lint Check / check-python (push) Failing after 14s
feat: add Syncthing service deployment and configuration
2025-03-17 11:12:13 +01:00

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