mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-13 16:20:50 +08:00
更新 docker-compose-pwd.yml,添加 syncthing 服务的部署副本配置
This commit is contained in:
@ -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