From 6897f1bfbc0731b5e1581313a3e248ad7991cef8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 24 Jan 2021 00:00:42 -0800 Subject: [PATCH] makefile: add env for 2 clusters --- docker/Makefile | 3 +++ docker/local-clusters-compose.yml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 docker/local-clusters-compose.yml diff --git a/docker/Makefile b/docker/Makefile index 3712db4be..fe278f9b4 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -24,5 +24,8 @@ dev_registry: build cluster: build docker-compose -f local-cluster-compose.yml -p seaweedfs up +2clusters: build + docker-compose -f local-clusters-compose.yml -p seaweedfs up + clean: rm ./weed diff --git a/docker/local-clusters-compose.yml b/docker/local-clusters-compose.yml new file mode 100644 index 000000000..e813ca35f --- /dev/null +++ b/docker/local-clusters-compose.yml @@ -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"