init syncthing role

This commit is contained in:
2026-01-26 23:12:48 -07:00
parent 5c4fe4f2bd
commit b8b3e6e577
4 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
version: "3"
services:
syncthing:
image: syncthing/syncthing:{{ syncthing_version }}
container_name: syncthing
hostname: {{ inventory_hostname }}
environment:
- PUID=1000
- PGID=1000
- STGUIADDRESS=
volumes:
- /var/lib/syncthing:/var/syncthing
network_mode: host
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