From b96beacffb5f8e1b5fc46dd205a9f77115356433 Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Mon, 18 Mar 2024 17:00:58 +0000 Subject: [PATCH] Add syncthing --- README.md | 7 ++++++- docker-compose.yaml | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d4f8a1c..c7a9779 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,10 @@ See [this guide](https://link.ai-dock.org/guide-sshd-do) by DigitalOcean for an >[!NOTE] >_SSHD is included because the end-user should be able to know the version prior to deloyment. Using a providers add-on, if available, does not guarantee this._ +### Syncthing + +[Syncthing](https://syncthing.net/) is a peer-to-peer continuous file synchronization program which is very useful for efficiently transporting your work files from a local workstation to a remote container instance. As the files are sync'd in real-time there is no need for a separate download to retrieve the files. + ### Logtail This script follows and prints the log files for each of the above services to stdout. This allows you to follow the progress of all running services through docker's own logging system. @@ -330,7 +334,8 @@ Some ports need to be exposed for the services to run or for certain features of | --------------------- | ------------------------- | | `22` | SSH server | | `1111` | Service Portal web UI | -| `53682` | Rclone interactive config | +| `8384` | Syncthing UI | +| `22999` | Syncthing TCP Transport | ## Pre-Configured Templates diff --git a/docker-compose.yaml b/docker-compose.yaml index fca9bf1..bf3331f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -39,8 +39,9 @@ services: - ${SSH_PORT_HOST:-2222}:22 # Web UI for easy service access - ${SERVICEPORTAL_PORT_HOST:-1111}:${SERVICEPORTAL_PORT_HOST:-1111} - # Rclone webserver for interactive configuration - - ${RCLONE_PORT_HOST:-53682}:${RCLONE_PORT_HOST:-53682} + # Syncthing + - ${SYNCTHING_UI_PORT_HOST:-8384}:${SYNCTHING_UI_PORT_HOST:-8384} + - ${SYNCTHING_TRANSPORT_PORT_HOST:-22999}:${SYNCTHING_TRANSPORT_PORT_HOST:-22999} environment: # Don't enclose values in quotes @@ -57,4 +58,6 @@ services: - SERVICEPORTAL_PORT_HOST=${SERVICEPORTAL_PORT_HOST:-1111} - SERVICEPORTAL_METRICS_PORT=${SERVICEPORTAL_METRICS_PORT:-21111} - SERVERLESS=${SERVERLESS:-false} + - SYNCTHING_UI_PORT_HOST=${SYNCTHING_UI_PORT_HOST:-8384} + - SYNCTHING_TRANSPORT_PORT_HOST=${SYNCTHING_TRANSPORT_PORT_HOST:-22999} #- PROVISIONING_SCRIPT=https://raw.githubusercontent.com/ai-dock/pytorch/main/config/provisioning/default.sh \ No newline at end of file