Skip to content

Commit

Permalink
milvus
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Oct 9, 2024
1 parent ef516cf commit 78302d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
15 changes: 3 additions & 12 deletions apps/milvus/.env
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
W9_REPO=milvusdb/milvus
W9_VERSION=v2.4.12
W9_DIST=community
W9_POWER_PASSWORD=tfhdjX1vHiwGAi

W9_ID=milvus
W9_HTTP_PORT=19530
W9_HTTP_PORT_SET=19530
W9_URL=internet_ip
W9_NETWORK=websoft9

# ETCD Configuration
ETCD_AUTO_COMPACTION_MODE=revision
ETCD_AUTO_COMPACTION_RETENTION=1000
ETCD_QUOTA_BACKEND_BYTES=4294967296
ETCD_SNAPSHOT_COUNT=50000

# MinIO Configuration
MINIO_ACCESS_KEY=3SZW5gkJwqm17i0o
MINIO_SECRET_KEY=zaaP79UXbcfJrJKGnAu+N9Yy6TIy+vWT

# Standalone Service Configuration
ETCD_ENDPOINTS=$W9_ID-etcd:2379
MINIO_ADDRESS=$W9_ID-minio:9001
# ETCD_ENDPOINTS=$W9_ID-etcd:2379
# MINIO_ADDRESS=$W9_ID-minio:9001
8 changes: 8 additions & 0 deletions apps/milvus/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ services:
etcd:
container_name: $W9_ID-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:
- etcd_data:/etcd
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
Expand All @@ -24,6 +29,9 @@ services:
volumes:
- minio_data:/minio_data
command: minio server /minio_data --console-address ":9001"
environment:
MINIO_ACCESS_KEY: $W9_POWER_PASSWORD
MINIO_SECRET_KEY: $W9_POWER_PASSWORD
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
Expand Down

0 comments on commit 78302d6

Please sign in to comment.