mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-13 08:00:49 +08:00
更新 syncthing 的 Docker Compose 配置,添加版本信息并调整服务依赖关系
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
version: "3"
|
||||||
volumes:
|
volumes:
|
||||||
st-sync-1-cfg:
|
st-sync-1-cfg:
|
||||||
st-sync-2-cfg:
|
st-sync-2-cfg:
|
||||||
@ -33,8 +34,9 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
syncthing-2:
|
syncthing-2:
|
||||||
depends_on:
|
depends_on:
|
||||||
syncthing-1:
|
# syncthing-1:
|
||||||
condition: service_healthy
|
# condition: service_healthy # v3 版本中已经被移除,只能通过一些额外的健康检查工具或者脚本来实现类似效果。
|
||||||
|
- syncthing-1
|
||||||
<<: *common-configuration
|
<<: *common-configuration
|
||||||
hostname: my-syncthing-2
|
hostname: my-syncthing-2
|
||||||
volumes:
|
volumes:
|
||||||
|
Reference in New Issue
Block a user