|
|
|
@ -1,5 +1,3 @@ |
|
|
|
version: '3.8' |
|
|
|
|
|
|
|
services: |
|
|
|
# Masters |
|
|
|
master0: |
|
|
|
@ -12,7 +10,7 @@ services: |
|
|
|
networks: |
|
|
|
- seaweedfs-test |
|
|
|
healthcheck: |
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9333/cluster/status"] |
|
|
|
test: ["CMD", "wget", "-q", "--spider", "http://master0:9333/cluster/status"] |
|
|
|
interval: 30s |
|
|
|
timeout: 10s |
|
|
|
retries: 5 |
|
|
|
@ -28,7 +26,7 @@ services: |
|
|
|
networks: |
|
|
|
- seaweedfs-test |
|
|
|
healthcheck: |
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9334/cluster/status"] |
|
|
|
test: ["CMD", "wget", "-q", "--spider", "http://master1:9334/cluster/status"] |
|
|
|
interval: 30s |
|
|
|
timeout: 10s |
|
|
|
retries: 5 |
|
|
|
@ -44,7 +42,7 @@ services: |
|
|
|
networks: |
|
|
|
- seaweedfs-test |
|
|
|
healthcheck: |
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:9335/cluster/status"] |
|
|
|
test: ["CMD", "wget", "-q", "--spider", "http://master2:9335/cluster/status"] |
|
|
|
interval: 30s |
|
|
|
timeout: 10s |
|
|
|
retries: 5 |
|
|
|
|