Fix etcd deployments bug with Docker compose (#7045)

Signed-off-by: quicksilver <zhifeng.zhang@zilliz.com>
pull/7005/head^2
quicksilver 2021-08-11 16:22:09 +08:00 committed by GitHub
parent e880e99cdc
commit 1fac193ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -6,12 +6,7 @@ services:
image: quay.io/coreos/etcd:v3.5.0
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -listen-peer-urls=http://127.0.0.1:2380 -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 -initial-advertise-peer-urls=http://127.0.0.1:2380 --listen-metrics-urls=http://127.0.0.1:2381 --initial-cluster default=http://127.0.0.1:2380 --data-dir /etcd
healthcheck:
test: ["CMD", "wget", "-q", "--tries=1", "--spider", "http://localhost:2381/health"]
interval: 30s
timeout: 20s
retries: 3
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
pulsar:
container_name: milvus-pulsar

View File

@ -6,12 +6,7 @@ services:
image: quay.io/coreos/etcd:v3.5.0
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -listen-peer-urls=http://127.0.0.1:2380 -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 -initial-advertise-peer-urls=http://127.0.0.1:2380 --listen-metrics-urls=http://127.0.0.1:2381 --initial-cluster default=http://127.0.0.1:2380 --data-dir /etcd
healthcheck:
test: ["CMD", "wget", "-q", "--tries=1", "--spider", "http://localhost:2381/health"]
interval: 30s
timeout: 20s
retries: 3
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
minio:
container_name: milvus-minio