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: