mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-12 23:50:49 +08:00
更新 docker-compose-pwd.yml,添加 syncthing 服务的部署副本配置
This commit is contained in:
@ -14,6 +14,8 @@ x-common-configuration: &common-configuration
|
||||
retries: 3
|
||||
services:
|
||||
syncthing-1:
|
||||
deploy:
|
||||
replicas: 1
|
||||
<<: *common-configuration
|
||||
hostname: my-syncthing-1
|
||||
volumes:
|
||||
@ -22,6 +24,8 @@ services:
|
||||
ports:
|
||||
- 28001:8384
|
||||
syncthing-2:
|
||||
deploy:
|
||||
replicas: 1
|
||||
depends_on:
|
||||
- syncthing-1
|
||||
<<: *common-configuration
|
||||
|
Reference in New Issue
Block a user