---
title: "Deploy Milvus"
description: "Authenticated Milvus v2.6 REST API with etcd and MinIO."
category: "AI/ML"
url: https://railway.com/deploy/c7nLmV
---

# Deploy Milvus

Authenticated Milvus v2.6 REST API with etcd and MinIO.

**[Deploy Milvus on Railway](https://railway.com/template/c7nLmV)**

- **Creator:** Tom
- **Category:** AI/ML
- **Total deploys:** 46

## Template content

### milvus-rest-proxy https://grpc.io/img/logos/grpc-icon-color.png

- **Image:** ghcr.io/monotykamary/grpc-reverse-proxy:v2.11.4-r3
- **Health check:** /health
- **Public domain:** Yes

### minio https://raw.githubusercontent.com/homarr-labs/dashboard-icons/8bde504767d6114a366bec8886b86a96b641b4cf/svg/minio-light.svg

- **Image:** minio/minio:RELEASE.2025-09-07T16-13-09Z
- **Start command:** `minio server /minio_data --console-address ":9001"`
- **Health check:** /minio/health/live

### etcd https://upload.wikimedia.org/wikipedia/labs/5/53/Etcd_logo.png

- **Image:** quay.io/coreos/etcd:v3.6.14
- **Start command:** `etcd -advertise-client-urls=http://etcd.railway.internal:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd`
- **Health check:** /health

### standalone https://raw.githubusercontent.com/milvus-io/milvus.io/9c555279797e0a08a08fe8d5fa27be4ad1e0e267/public/images/favicon.png

- **Image:** milvusdb/milvus:v2.6.22@sha256:a8ac051e59eb084d41bd317ec51aac28553d664e91c43a806ccd6a1538abc1df
- **Start command:** `milvus run standalone`
- **Health check:** /healthz

## Documentation

# Deploy and Host Milvus REST on Railway

Milvus is an open-source vector database for similarity search, embeddings, retrieval-augmented generation, recommendation, and other high-dimensional workloads.

## About Hosting Milvus

This template deploys Milvus Standalone `v2.6.22` with persistent etcd `v3.6.14`, MinIO `RELEASE.2025-09-07T16-13-09Z`, and a Caddy `2.11.4` REST proxy. Only the REST proxy receives a public domain; Milvus, etcd, and MinIO communicate through Railway private networking.

Milvus authentication is enabled with a generated root password. Milvus data, etcd metadata, and MinIO objects each use a separate persistent volume, and generated MinIO credentials are passed through Railway references.

## Common Use Cases

- Store and search embedding vectors through the Milvus REST v2 API
- Build semantic search and recommendation services
- Run ANN similarity queries for images, text, or multimodal data
- Evaluate a protected standalone Milvus deployment without Kubernetes

## Dependencies for Milvus Hosting

- Milvus Standalone `v2.6.22`
- etcd `v3.6.14`
- MinIO `RELEASE.2025-09-07T16-13-09Z`
- Caddy `2.11.4` proxy image `v2.11.4-r3`
- Persistent volumes for all three stateful services
- Sufficient memory for Milvus Standalone; start with at least 4 GB for nontrivial workloads

### Deployment Dependencies

- [Milvus REST API documentation](https://milvus.io/api-reference/restful/v2.6.x/About.md)
- [Milvus source](https://github.com/milvus-io/milvus)
- [Proxy source](https://github.com/monotykamary/grpc-reverse-proxy)

### Implementation Details

Send HTTPS requests to the generated `milvus-rest-proxy` domain. Read `COMMON_SECURITY_DEFAULTROOTPASSWORD` from the `standalone` service and authenticate with the REST header `Authorization: Bearer root:YOUR_PASSWORD`.

For example, list collections with `POST /v2/vectordb/collections/list` and a JSON body containing `{"dbName":"default"}`.

Railway public HTTP domains currently do not preserve native gRPC end to end to the container. This template therefore supports the official REST v2 API, not native gRPC SDK connections such as PyMilvus. Do not add an unauthenticated public TCP proxy as a workaround; it would expose database traffic without Railway-managed TLS.

## Why Deploy Milvus on Railway?

Railway provides persistent volumes, private service discovery, HTTPS, generated credentials, health checks, and centralized logs for a compact authenticated Milvus REST topology.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/c7nLmV
