aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-03 13:55:19 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-03 13:55:19 -0800
commitee4b208b8a92e1e3720827569e9bf768eb5580c8 (patch)
treee4dfd2a1b8f8198285a77d1451733ace8e5c3c06
parent430aca474ca89a4e69660f2f19b50dccabd860c0 (diff)
downloadseaweedfs-ee4b208b8a92e1e3720827569e9bf768eb5580c8.tar.xz
seaweedfs-ee4b208b8a92e1e3720827569e9bf768eb5580c8.zip
increase to 3 volumes for local cluster
-rw-r--r--docker/compose/local-cluster-compose.yml30
1 files changed, 26 insertions, 4 deletions
diff --git a/docker/compose/local-cluster-compose.yml b/docker/compose/local-cluster-compose.yml
index bf12c4639..89a1ed0cb 100644
--- a/docker/compose/local-cluster-compose.yml
+++ b/docker/compose/local-cluster-compose.yml
@@ -19,12 +19,32 @@ services:
- 9335:9335
- 19335:19335
command: "master -ip=master2 -port=9335 -peers=master0:9333,master1:9334,master2:9335 -mdir=/data/m3"
- volume:
+ volume1:
image: chrislusf/seaweedfs:local
ports:
- 8080:8080
- 18080:18080
- command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8080 -ip=volume -publicUrl=localhost:8080'
+ command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8080 -ip=volume1 -publicUrl=localhost:8080'
+ depends_on:
+ - master0
+ - master1
+ - master2
+ volume2:
+ image: chrislusf/seaweedfs:local
+ ports:
+ - 8082:8082
+ - 18082:18082
+ command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8082 -ip=volume2 -publicUrl=localhost:8082'
+ depends_on:
+ - master0
+ - master1
+ - master2
+ volume3:
+ image: chrislusf/seaweedfs:local
+ ports:
+ - 8083:8083
+ - 18083:18083
+ command: 'volume -mserver="master0:9333,master1:9334,master2:9335" -port=8083 -ip=volume3 -publicUrl=localhost:8083'
depends_on:
- master0
- master1
@@ -39,7 +59,8 @@ services:
- master0
- master1
- master2
- - volume
+ - volume1
+ - volume2
s3:
image: chrislusf/seaweedfs:local
ports:
@@ -49,5 +70,6 @@ services:
- master0
- master1
- master2
- - volume
+ - volume1
+ - volume2
- filer