21 lines
529 B
Django/Jinja
21 lines
529 B
Django/Jinja
---
|
|
version: "3"
|
|
services:
|
|
syncthing:
|
|
image: syncthing/syncthing:{{ syncthing_version }}
|
|
container_name: syncthing
|
|
hostname: {{ inventory_hostname }}
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- STGUIADDRESS=0.0.0.0:8384
|
|
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
|