diff --git a/apps/milvus/.env b/apps/milvus/.env index c9a80fcb..eb14b407 100644 --- a/apps/milvus/.env +++ b/apps/milvus/.env @@ -1,20 +1,12 @@ -W9_REPO=quay.io/coreos/etcd -W9_VERSION=v3.5.5 -W9_ID=milvus -W9_NETWORK=websoft9 -W9_POWER_ACCESS_KEY=3SZW5gkJwqm17i0o -W9_POWER_SECRET_KEY=zaaP79UXbcfJrJKGnAu+N9Yy6TIy+vWT +W9_REPO=milvusdb/milvus +W9_VERSION=v2.4.12 +W9_DIST=community -# Ports Configuration +W9_ID=milvus W9_HTTP_PORT=19530 -W9_HTTP_PORT_SET=50002 -W9_ADMIN_PORT=9091 -W9_ADMIN_PORT_SET=5001 -W9_MINIO_HTTP_PORT=9000 -W9_MINIO_HTTP_PORT_SET=9000 -W9_MINIO_CONSOLE_PORT=9001 -W9_MINIO_CONSOLE_PORT_SET=9001 +W9_HTTP_PORT_SET=19530 W9_URL=internet_ip +W9_NETWORK=websoft9 # ETCD Configuration ETCD_AUTO_COMPACTION_MODE=revision @@ -23,9 +15,9 @@ ETCD_QUOTA_BACKEND_BYTES=4294967296 ETCD_SNAPSHOT_COUNT=50000 # MinIO Configuration -MINIO_ACCESS_KEY=$W9_POWER_ACCESS_KEY -MINIO_SECRET_KEY=$W9_POWER_SECRET_KEY +MINIO_ACCESS_KEY=3SZW5gkJwqm17i0o +MINIO_SECRET_KEY=zaaP79UXbcfJrJKGnAu+N9Yy6TIy+vWT # Standalone Service Configuration -ETCD_ENDPOINTS=etcd:2379 -MINIO_ADDRESS=minio:9001 +ETCD_ENDPOINTS=$W9_ID-etcd:2379 +MINIO_ADDRESS=$W9_ID-minio:9001 diff --git a/apps/milvus/Note.md b/apps/milvus/Note.md index 9908b14e..1d9fe060 100644 --- a/apps/milvus/Note.md +++ b/apps/milvus/Note.md @@ -1,11 +1 @@ -# Milvus - -## FAQ - -### 1. **What is Milvus?** - -Milvus is an open-source, high-performance vector database designed to manage and search large-scale vector data. It is optimized for similarity search in applications such as AI, machine learning, and big data analysis. Milvus is highly scalable and can run on various environments, from local machines to distributed systems. - -### 2. **How do I install Milvus?** - -Milvus can be installed using Docker. Follow the instructions provided in the [Milvus documentation](https://milvus.io/docs/install_standalone-docker-compose.md) to set it up and run it using Docker containers. +# Milvus \ No newline at end of file diff --git a/apps/milvus/README.jinja2 b/apps/milvus/README.jinja2 deleted file mode 100644 index 8949cc4e..00000000 --- a/apps/milvus/README.jinja2 +++ /dev/null @@ -1,26 +0,0 @@ -# {{trademark}} on Docker - -This is an **Docker Compose solution** powered by [Websoft9](https://www.websoft9.com) based on Docker for {{trademark}}: - -{% for ed in edition %} - - {{ed.dist}}: {{ ed.version | join(', ') }} -{% endfor %} - -## System Requirements - -The following are the minimal [recommended requirements]({{requirements.url}}): - -* **RAM**: {{requirements.memory}} GB or more -* **CPU**: {{requirements.cpu}} cores or higher -* **Disk**: at least {{requirements.disk}} GB of free space -* **bandwidth**: more fluent experience over 100M - -## Install - -You can install this {{trademark}} by [How to use it?](https://github.com/Websoft9/docker-library#how-to-use-it). - -If you want use {{trademark}} with **Websoft9 Business Support** free, you can [subscribe {{trademark}}](https://www.websoft9.com/apps) on Cloud platform - -## Documentation - -[{{trademark}} Administrator Guide](https://support.websoft9.com/docs/{{name}}) powered by Websoft9 diff --git a/apps/milvus/docker-compose.yml b/apps/milvus/docker-compose.yml index 4f67453a..b2bdfe45 100644 --- a/apps/milvus/docker-compose.yml +++ b/apps/milvus/docker-compose.yml @@ -1,12 +1,13 @@ -# image: https://hub.docker.com/r/milvusdb/milvus/tags +# image: https://hub.docker.com/r/milvusdb/milvus # compose: https://milvus.io/docs/install_standalone-docker-compose.md +# docs: https://milvus.io/docs version: '3.8' services: etcd: container_name: $W9_ID-etcd - image: $W9_REPO:$W9_VERSION + image: quay.io/coreos/etcd:v3.5.5 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 @@ -20,42 +21,36 @@ services: minio: container_name: $W9_ID-minio image: minio/minio:RELEASE.2023-03-20T20-16-18Z - ports: - - "${W9_MINIO_HTTP_PORT_SET}:9000" - - "${W9_MINIO_CONSOLE_PORT_SET}:9001" volumes: - minio_data:/minio_data - command: minio server /minio_data --console-address ":${W9_MINIO_CONSOLE_PORT}" + command: minio server /minio_data --console-address ":9001}" healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:${W9_MINIO_HTTP_PORT}/minio/health/live"] + test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 30s timeout: 20s retries: 3 - standalone: - container_name: $W9_ID-standalone - image: milvusdb/milvus:v2.4.12 + container_name: $W9_ID + image: $W9_REPO:$W9_VERSION command: ["milvus", "run", "standalone"] security_opt: - seccomp:unconfined volumes: - milvus_data:/var/lib/milvus healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:${W9_ADMIN_PORT}/healthz"] + test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"] interval: 30s start_period: 90s timeout: 20s retries: 3 ports: - "${W9_HTTP_PORT_SET}:19530" - - "${W9_ADMIN_PORT_SET}:9091" depends_on: - etcd - minio env_file: - .env - networks: default: @@ -64,11 +59,8 @@ networks: volumes: etcd_data: - driver: local minio_data: - driver: local milvus_data: - driver: local diff --git a/apps/milvus/variables.json b/apps/milvus/variables.json index 14433c98..943ccbc6 100644 --- a/apps/milvus/variables.json +++ b/apps/milvus/variables.json @@ -1,19 +1,19 @@ { "name": "milvus", "trademark": "Milvus", - "release": true, - "fork_url": "https://github.com/milvus-io/milvus/fork", + "release": false, + "fork_url": "https://github.com/milvus-io/milvus", "docker_url": "https://hub.docker.com/r/milvusdb/milvus/tags", "edition": [ { "dist": "community", - "version": ["latest"] + "version": ["v2.4.12","latest"] } ], "requirements": { - "cpu": "4", - "memory": "8", - "disk": "2200", + "cpu": "8", + "memory": "32", + "disk": "2", "url": "https://milvus.io/docs/prerequisite-docker.md" } }