Skip to content

Instantly share code, notes, and snippets.

@AFutureD
Created April 16, 2024 05:19
Show Gist options
  • Save AFutureD/2e6c7ed03ad1a42f518db15f30163be9 to your computer and use it in GitHub Desktop.
Save AFutureD/2e6c7ed03ad1a42f518db15f30163be9 to your computer and use it in GitHub Desktop.
version: '3.5'
services:
etcd:
container_name: milvus-etcd
image: quay.io/coreos/etcd:v3.5.5
environment:
- ETCD_AUTO_COMPACTION_MODE=revision
- ETCD_AUTO_COMPACTION_RETENTION=1000
- ETCD_QUOTA_BACKEND_BYTES=4294967296
- ETCD_SNAPSHOT_COUNT=50000
volumes:
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck:
test: ["CMD", "etcdctl", "endpoint", "health"]
interval: 30s
timeout: 20s
retries: 3
milvus:
container_name: milvus-standalone
image: milvusdb/milvus:v2.4.0-rc.1
command: ["milvus", "run", "standalone"]
security_opt:
- seccomp:unconfined
environment:
ETCD_ENDPOINTS: etcd:2379
COMMON_STORAGETYPE: local
volumes:
- ./milvus.yaml:/milvus/configs/milvus.yaml # https://github.com/milvus-io/milvus/blob/master/configs/milvus.yaml
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
ports:
- 19530:19530
- 9091:9091
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
start_period: 90s
timeout: 20s
retries: "3"
depends_on:
- "etcd"
networks:
default:
name: milvus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment