mirror of
https://github.com/yanhao98/docker-example.git
synced 2026-10-06 16:12:00 +08:00
更新 docker-compose-pwd.yml,添加 syncthing 服务的部署副本配置
This commit is contained in:
1 parent
f17df34f81
commit
42c21810d9
1 file changed
+4
@@ -14,6 +14,8 @@ x-common-configuration: &common-configuration
|
|||||||
retries: 3
|
retries: 3
|
||||||
services:
|
services:
|
||||||
syncthing-1:
|
syncthing-1:
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
<<: *common-configuration
|
<<: *common-configuration
|
||||||
hostname: my-syncthing-1
|
hostname: my-syncthing-1
|
||||||
volumes:
|
volumes:
|
||||||
@@ -22,6 +24,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 28001:8384
|
- 28001:8384
|
||||||
syncthing-2:
|
syncthing-2:
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
depends_on:
|
depends_on:
|
||||||
- syncthing-1
|
- syncthing-1
|
||||||
<<: *common-configuration
|
<<: *common-configuration
|
||||||
|
|||||||
Reference in new issue
Block a user