# Self-host Milvus

> A cloud-native vector database built for billion-scale similarity search, run here as a single standalone node. Has no authentication, so reach it from other services in this project at milvus:19530, or attach a domain (it routes to port 19530 only) only behind Basic Auth. Not published on the host.

- Page: https://levelrail.com/templates/milvus/
- JSON: https://levelrail.com/templates/milvus.json
- Category: Database Tools
- Licence: Apache-2.0 (Permissive license)
- Source: https://github.com/milvus-io/milvus
- Upstream docs: https://milvus.io/docs

## Requirements
- Memory: about 4 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: v3.0.2

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| milvus | milvusdb/milvus | v3.0.2 | 19530, 9091 | milvus_data -> /var/lib/milvus |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| milvus | COMMON_STORAGETYPE | preset |
| milvus | DEPLOY_MODE | preset |
| milvus | ETCD_DATA_DIR | preset |
| milvus | ETCD_USE_EMBED | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy milvus --name my-milvus
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/milvus/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Milvus on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Milvus, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image milvusdb/milvus:v3.0.2 is what you deploy there.

Self-host Milvus, Milvus docker compose file, deploy Milvus on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
