rxr_docker_compose/rxr_syncthing/docker-compose.yml

19 lines
493 B
YAML
Raw Permalink Normal View History

2024-11-09 07:28:58 +00:00
version: "3"
services:
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: my-syncthing
environment:
- PUID=1000
- PGID=1000
volumes:
2024-11-10 10:29:41 +00:00
- ${SYNC_PATH}/syncthing-setting:/var/syncthing
- ${SYNC_PATH}:/file
2024-11-09 07:28:58 +00:00
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