From 277031ada7df78cc1113b1ee578454d32f6f7025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Thu, 24 Oct 2024 22:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md=20=E5=92=8C=20Do?= =?UTF-8?q?cker=20Compose=20=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=20sything=20=E7=9B=B8=E5=85=B3=E6=96=87=E6=A1=A3=E5=92=8C?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- stacks/sything/README.md | 5 +++++ stacks/sything/docker-compose-pwd.yml | 26 ++++---------------------- stacks/sything/docker-compose.yml | 1 - 4 files changed, 10 insertions(+), 24 deletions(-) create mode 100644 stacks/sything/README.md diff --git a/README.md b/README.md index b845f51..c97ff0c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## [Play With Docker](http://labs.play-with-docker.com/)[^1] -[![Try in PWD](https://raw.githubusercontent.com/play-with-docker/stacks/master/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/Mon-ius/Docker-Warp-Socks/main/dev/warp-socks.yml) +[![Try in PWD](https://raw.githubusercontent.com/play-with-docker/stacks/master/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/yanhao98/docker-example/refs/heads/main/stacks/sything/docker-compose-pwd.yml) > Click the *CLOSE* button, Replace the $IP with the given one on the top side, then run: > `curl -x "socks5h://$IP:9091" -fsSL "https://www.cloudflare.com/cdn-cgi/trace"` > ``` diff --git a/stacks/sything/README.md b/stacks/sything/README.md new file mode 100644 index 0000000..c4c7e03 --- /dev/null +++ b/stacks/sything/README.md @@ -0,0 +1,5 @@ +# sything +[![Try in PWD](https://raw.githubusercontent.com/play-with-docker/stacks/master/assets/images/button.png)](http://play-with-docker.com?stack=https://raw.githubusercontent.com/yanhao98/docker-example/refs/heads/main/stacks/sything/docker-compose.yml) +```bash +wget https://raw.githubusercontent.com/yanhao98/docker-example/refs/heads/main/stacks/sything/docker-compose.yml && docker-compose up -d +``` \ No newline at end of file diff --git a/stacks/sything/docker-compose-pwd.yml b/stacks/sything/docker-compose-pwd.yml index a7c6eef..ffcf01e 100644 --- a/stacks/sything/docker-compose-pwd.yml +++ b/stacks/sything/docker-compose-pwd.yml @@ -1,7 +1,4 @@ --- -volumes: - st-sync-1-cfg: - st-sync-2-cfg: x-common-configuration: &common-configuration image: syncthing/syncthing environment: @@ -11,8 +8,6 @@ x-common-configuration: &common-configuration 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 interval: 10s timeout: 5s retries: 3 @@ -22,29 +17,16 @@ services: hostname: my-syncthing-1 volumes: - /root/st-sync-1-folder:/st-folder - - type: volume - source: st-sync-1-cfg - target: /var/syncthing/config + - /root/st-sync-1-cfg:/var/syncthing/config ports: - - 28001:8384 # Web UI - # - 22000:22000/tcp # TCP file transfers - # - 22000:22000/udp # QUIC file transfers - # - 21027:21027/udp # Receive local discovery broadcasts - restart: unless-stopped + - 28001:8384 syncthing-2: depends_on: - # syncthing-1: - # condition: service_healthy # v3 版本中已经被移除,只能通过一些额外的健康检查工具或者脚本来实现类似效果。 - syncthing-1 <<: *common-configuration hostname: my-syncthing-2 volumes: - /root/st-sync-2-folder:/st-folder - - type: volume - source: st-sync-2-cfg - target: /var/syncthing/config + - /root/st-sync-2-cfg:/var/syncthing/config ports: - - 28002:8384 # Web UI - # - 22000:22000/tcp # TCP file transfers - # - 22000:22000/udp # QUIC file transfers - # - 21027:21027/udp # Receive local discovery broadcasts + - 28002:8384 \ No newline at end of file diff --git a/stacks/sything/docker-compose.yml b/stacks/sything/docker-compose.yml index e8a9a01..16e053b 100644 --- a/stacks/sything/docker-compose.yml +++ b/stacks/sything/docker-compose.yml @@ -30,7 +30,6 @@ services: # - 22000:22000/tcp # TCP file transfers # - 22000:22000/udp # QUIC file transfers # - 21027:21027/udp # Receive local discovery broadcasts - restart: unless-stopped syncthing-2: depends_on: # syncthing-1: