From c2558dfc0fddf2295d0aff727e023baa291204c7 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:38:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20syncthing=20=E7=9A=84=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?=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E5=B9=B6=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E4=BE=9D=E8=B5=96=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stacks/sything/docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stacks/sything/docker-compose.yml b/stacks/sything/docker-compose.yml index 3ff28e5..f0478d3 100644 --- a/stacks/sything/docker-compose.yml +++ b/stacks/sything/docker-compose.yml @@ -1,4 +1,5 @@ --- +version: "3" volumes: st-sync-1-cfg: st-sync-2-cfg: @@ -33,8 +34,9 @@ services: restart: unless-stopped syncthing-2: depends_on: - syncthing-1: - condition: service_healthy + # syncthing-1: + # condition: service_healthy # v3 版本中已经被移除,只能通过一些额外的健康检查工具或者脚本来实现类似效果。 + - syncthing-1 <<: *common-configuration hostname: my-syncthing-2 volumes: