mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-13 04:00:47 +08:00
更新 syncthing 的 Docker Compose 配置,添加版本信息并调整服务依赖关系
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user