Milvus以图搜图单机部署

参考:https://hub.fastgit.org/milvus-io/bootcamp/tree/master/solutions/reverse_image_search/quick_deploy

1. Start Milvus v2.0

1.wget https://raw.githubusercontent.com/milvus-io/milvus/master/deployments/docker/standalone/docker-compose.yml -O docker-compose.yml

2.docker-compose up -d

部署MySQL (TODO)

docker run -p <宿主机端口>:3306 -e MYSQL_ROOT_PASSWORD=<密码> -d mysql:5.7

table? milvus_img_search

2. Start Server

docker run -d \

-v /home/forths/workspace/以图搜图/imagedata:/data/image_path \

-p 5001:5000 \

-e "MILVUS_HOST=127.0.0.1 \

-e "MILVUS_PORT=19530" \

-e "MYSQL_HOST=127.0.0.1" \

milvusbootcamp/img-search-server:2.0

地址:http://127.0.0.1:5001/docs

3. Start Client

docker run -d -p 8001:80 \

-e API_URL=http://127.0.0.1:5001 \

milvusbootcamp/img-search-client:1.0

地址: http://127.0.0.1:8001

你可能感兴趣的:(环境配置)