mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
makefile: add env for 2 clusters
This commit is contained in:
parent
f8dbb03bdd
commit
6897f1bfbc
|
@ -24,5 +24,8 @@ dev_registry: build
|
||||||
cluster: build
|
cluster: build
|
||||||
docker-compose -f local-cluster-compose.yml -p seaweedfs up
|
docker-compose -f local-cluster-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
|
2clusters: build
|
||||||
|
docker-compose -f local-clusters-compose.yml -p seaweedfs up
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ./weed
|
rm ./weed
|
||||||
|
|
23
docker/local-clusters-compose.yml
Normal file
23
docker/local-clusters-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server1:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9333:9333
|
||||||
|
- 19333:19333
|
||||||
|
- 8084:8080
|
||||||
|
- 18084:18080
|
||||||
|
- 8888:8888
|
||||||
|
- 18888:18888
|
||||||
|
command: "server -ip=server1 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
|
||||||
|
server2:
|
||||||
|
image: chrislusf/seaweedfs:local
|
||||||
|
ports:
|
||||||
|
- 9334:9333
|
||||||
|
- 19334:19333
|
||||||
|
- 8085:8080
|
||||||
|
- 18085:18080
|
||||||
|
- 8889:8888
|
||||||
|
- 18889:18888
|
||||||
|
command: "server -ip=server2 -filer -volume.max=0 -master.volumeSizeLimitMB=1024 -volume.preStopSeconds=1"
|
Loading…
Reference in a new issue