Browse Source

fix docker compose

adding-message-queue-integration-tests
chrislu 6 months ago
parent
commit
2c6ed03823
  1. 28
      test/mq/docker-compose.test.yml

28
test/mq/docker-compose.test.yml

@ -1,5 +1,3 @@
version: '3.9'
services: services:
# Master cluster for coordination and metadata # Master cluster for coordination and metadata
master0: master0:
@ -9,8 +7,8 @@ services:
- "19333:9333" - "19333:9333"
- "29333:19333" - "29333:19333"
command: > command: >
master
-v=1 -v=1
master
-volumeSizeLimitMB=100 -volumeSizeLimitMB=100
-resumeState=false -resumeState=false
-ip=master0 -ip=master0
@ -24,7 +22,7 @@ services:
networks: networks:
- seaweedmq-test - seaweedmq-test
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9333/cluster/status"]
test: ["CMD", "wget", "-q", "--spider", "http://master0:9333/cluster/status"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3
@ -36,8 +34,8 @@ services:
- "19334:9334" - "19334:9334"
- "29334:19334" - "29334:19334"
command: > command: >
master
-v=1 -v=1
master
-volumeSizeLimitMB=100 -volumeSizeLimitMB=100
-resumeState=false -resumeState=false
-ip=master1 -ip=master1
@ -60,8 +58,8 @@ services:
- "19335:9335" - "19335:9335"
- "29335:19335" - "29335:19335"
command: > command: >
master
-v=1 -v=1
master
-volumeSizeLimitMB=100 -volumeSizeLimitMB=100
-resumeState=false -resumeState=false
-ip=master2 -ip=master2
@ -85,8 +83,8 @@ services:
- "18080:8080" - "18080:8080"
- "28080:18080" - "28080:18080"
command: > command: >
volume
-v=1 -v=1
volume
-dataCenter=dc1 -dataCenter=dc1
-rack=rack1 -rack=rack1
-mserver=master0:9333,master1:9334,master2:9335 -mserver=master0:9333,master1:9334,master2:9335
@ -108,8 +106,8 @@ services:
- "18081:8081" - "18081:8081"
- "28081:18081" - "28081:18081"
command: > command: >
volume
-v=1 -v=1
volume
-dataCenter=dc1 -dataCenter=dc1
-rack=rack2 -rack=rack2
-mserver=master0:9333,master1:9334,master2:9335 -mserver=master0:9333,master1:9334,master2:9335
@ -131,8 +129,8 @@ services:
- "18082:8082" - "18082:8082"
- "28082:18082" - "28082:18082"
command: > command: >
volume
-v=1 -v=1
volume
-dataCenter=dc2 -dataCenter=dc2
-rack=rack1 -rack=rack1
-mserver=master0:9333,master1:9334,master2:9335 -mserver=master0:9333,master1:9334,master2:9335
@ -155,8 +153,8 @@ services:
- "18888:8888" - "18888:8888"
- "28888:18888" - "28888:18888"
command: > command: >
filer
-v=1 -v=1
filer
-defaultReplicaPlacement=100 -defaultReplicaPlacement=100
-iam -iam
-master=master0:9333,master1:9334,master2:9335 -master=master0:9333,master1:9334,master2:9335
@ -169,7 +167,7 @@ services:
master0: master0:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/"]
test: ["CMD", "wget", "-q", "--spider", "http://filer1:8888/"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3
@ -181,8 +179,8 @@ services:
- "18889:8889" - "18889:8889"
- "28889:18889" - "28889:18889"
command: > command: >
filer
-v=1 -v=1
filer
-defaultReplicaPlacement=100 -defaultReplicaPlacement=100
-iam -iam
-master=master0:9333,master1:9334,master2:9335 -master=master0:9333,master1:9334,master2:9335
@ -202,8 +200,8 @@ services:
ports: ports:
- "17777:17777" - "17777:17777"
command: > command: >
mq.broker
-v=1 -v=1
mq.broker
-master=master0:9333,master1:9334,master2:9335 -master=master0:9333,master1:9334,master2:9335
-port=17777 -port=17777
-ip=broker1 -ip=broker1
@ -226,8 +224,8 @@ services:
ports: ports:
- "17778:17778" - "17778:17778"
command: > command: >
mq.broker
-v=1 -v=1
mq.broker
-master=master0:9333,master1:9334,master2:9335 -master=master0:9333,master1:9334,master2:9335
-port=17778 -port=17778
-ip=broker2 -ip=broker2
@ -245,8 +243,8 @@ services:
ports: ports:
- "17779:17779" - "17779:17779"
command: > command: >
mq.broker
-v=1 -v=1
mq.broker
-master=master0:9333,master1:9334,master2:9335 -master=master0:9333,master1:9334,master2:9335
-port=17779 -port=17779
-ip=broker3 -ip=broker3

Loading…
Cancel
Save