From aa96fdacdd42a06b511bbaa10a2518e050e2627c Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Oct 2024 13:38:39 +0100 Subject: [PATCH 1/5] - Lets try syncthing --- syncthing-docker-compse.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 syncthing-docker-compse.yaml diff --git a/syncthing-docker-compse.yaml b/syncthing-docker-compse.yaml new file mode 100644 index 0000000..c8795d2 --- /dev/null +++ b/syncthing-docker-compse.yaml @@ -0,0 +1,18 @@ +--- +version: "3" +services: + syncthing: + image: syncthing/syncthing + container_name: syncthing + environment: + - PUID=1000 + - PGID=1000 + volumes: + - /volume1/Media:/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 \ No newline at end of file From 74f0d534aecb5bc0fc412f88bd6a584bb38467e5 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Oct 2024 14:01:17 +0100 Subject: [PATCH 2/5] - Fix the name --- syncthing-docker-compse.yaml => syncthing-docker-compose.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename syncthing-docker-compse.yaml => syncthing-docker-compose.yml (100%) diff --git a/syncthing-docker-compse.yaml b/syncthing-docker-compose.yml similarity index 100% rename from syncthing-docker-compse.yaml rename to syncthing-docker-compose.yml From 4d0630957a840960cf321ec66d3faa4007acf11d Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Oct 2024 14:03:30 +0100 Subject: [PATCH 3/5] - Remove user IDs --- syncthing-docker-compose.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/syncthing-docker-compose.yml b/syncthing-docker-compose.yml index c8795d2..0376b8a 100644 --- a/syncthing-docker-compose.yml +++ b/syncthing-docker-compose.yml @@ -4,9 +4,6 @@ services: syncthing: image: syncthing/syncthing container_name: syncthing - environment: - - PUID=1000 - - PGID=1000 volumes: - /volume1/Media:/var/syncthing network_mode: host From 243319a82a0243947a8c2556013521fc2cf86e06 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Oct 2024 14:10:01 +0100 Subject: [PATCH 4/5] - Mount to media so it can write to a local volume --- syncthing-docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthing-docker-compose.yml b/syncthing-docker-compose.yml index 0376b8a..c9ed553 100644 --- a/syncthing-docker-compose.yml +++ b/syncthing-docker-compose.yml @@ -5,7 +5,7 @@ services: image: syncthing/syncthing container_name: syncthing volumes: - - /volume1/Media:/var/syncthing + - /volume1/Media:/mnt/Media network_mode: host restart: unless-stopped healthcheck: From 8030c69c1cd7f5dd36a4efc0a06107e259a7f0f5 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 18 Oct 2024 14:25:10 +0100 Subject: [PATCH 5/5] - Better folder structure --- syncthing-docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncthing-docker-compose.yml b/syncthing-docker-compose.yml index c9ed553..b455ad5 100644 --- a/syncthing-docker-compose.yml +++ b/syncthing-docker-compose.yml @@ -5,7 +5,8 @@ services: image: syncthing/syncthing container_name: syncthing volumes: - - /volume1/Media:/mnt/Media + - /mnt/pokecenter/Media:/mnt/Media + - /mnt/docker_volumes/syncthing:/var/syncthing network_mode: host restart: unless-stopped healthcheck: