Install Milvus Standalone

This topic describes how to install Milvus standalone with Docker Compose or on Kubernetes. We recommend reading Before you Begin prior to your installation.

You can also build Milvus from source code at GitHub.

1. Download an installation file

Run the following command to download milvus-standalone-docker-compose.yml and save it as docker-compose.yml.

wget -O docker-compose.yml

You can also click here to download the file.

Data is stored in the volumes folder according to the default configuration in milvus-standalone-docker-compose.yml. To change the folder to store data, edit docker-compose.yml or run $ export DOCKER_VOLUME_DIRECTORY=.

2. Start Milvus

$ docker-compose up -d
Docker Compose is now in the Docker CLI, try `docker compose up`
Creating milvus-etcd  ... done
Creating milvus-minio ... done
Creating milvus-standalone ... done

After Milvus standalone starts, three running docker containers appear including two infrastructure services and one Milvus service.

$ sudo docker-compose ps
      Name                     Command                  State                          Ports
milvus-etcd         etcd -listen-peer-urls=htt ...   Up (healthy)   2379/tcp, 2380/tcp
milvus-minio        /usr/bin/docker-entrypoint ...   Up (healthy)   9000/tcp
milvus-standalone   /tini -- milvus run standalone   Up   >19530/tcp,:::19530->19530/tcp

3. Stop Milvus

To stop Milvus standalone, run $ sudo docker-compose down.

To delete data after stopping Milvus, run $ sudo rm -rf volumes.

See Upgrade Milvus Using Helm Chart for more information about upgrading Milvus.
Is this page helpful?
Scored Successfully!