From cd32a717c0234d9cbaf4441c59b0780903dc7271 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 9 Nov 2024 15:28:58 +0800 Subject: [PATCH] update --- rxr_syncthing/.env | 1 + rxr_syncthing/docker-compose.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 rxr_syncthing/.env create mode 100644 rxr_syncthing/docker-compose.yml diff --git a/rxr_syncthing/.env b/rxr_syncthing/.env new file mode 100644 index 0000000..52c7b50 --- /dev/null +++ b/rxr_syncthing/.env @@ -0,0 +1 @@ +PATH=/root/great_wall/syncthing \ No newline at end of file diff --git a/rxr_syncthing/docker-compose.yml b/rxr_syncthing/docker-compose.yml new file mode 100644 index 0000000..5736afe --- /dev/null +++ b/rxr_syncthing/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3" +services: + syncthing: + image: syncthing/syncthing + container_name: syncthing + hostname: my-syncthing + environment: + - PUID=1000 + - PGID=1000 + volumes: + - ${PATH}/syncthing:/var/syncthing + - ${PATH}:/file + 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 \ No newline at end of file