23 lines
482 B
YAML
23 lines
482 B
YAML
services:
|
|
syncthing:
|
|
image: syncthing/syncthing
|
|
container_name: syncthing
|
|
restart: always
|
|
hostname: docker1
|
|
ports:
|
|
- 8384:8384
|
|
volumes:
|
|
- /docker/data/syncthing/data:/var/syncthing
|
|
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
|
|
networks:
|
|
- caddy_default
|
|
networks:
|
|
caddy_default:
|
|
external: true
|
|
|