From dc237cc5601e40d065f276d5a3102de0b706138e Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Mon, 18 Mar 2024 16:42:01 +0000 Subject: [PATCH] Add syncthing --- README.md | 8 +++++++- docker-compose.yaml | 7 +++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3deace4..dbf58e7 100644 --- a/README.md +++ b/README.md @@ -321,6 +321,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. @@ -340,8 +344,10 @@ Some ports need to be exposed for the services to run or for certain features of | --------------------- | ------------------------- | | `22` | SSH server | | `1111` | Service portal web UI | +| `8384` | Syncthing UI | | `8888` | Jupyter server | -| `53682` | Rclone interactive config | +| `22999` | Syncthing TCP Transport | + ## Pre-Configured Templates diff --git a/docker-compose.yaml b/docker-compose.yaml index 1dd1a0b..e1163f6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -41,8 +41,9 @@ services: - ${SERVICEPORTAL_PORT_HOST:-1111}:${SERVICEPORTAL_PORT_HOST:-1111} # Jupyter server - ${JUPYTER_PORT_HOST:-8888}:${JUPYTER_PORT_HOST:-8888} - # 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 @@ -61,4 +62,6 @@ services: - JUPYTER_PORT_HOST=${JUPYTER_PORT_HOST:-8888} - JUPYTER_METRICS_PORT=${JUPYTER_METRICS_PORT:-28888} - 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/jupyter-python/main/config/provisioning/default.sh