animeic 2 years ago
parent
commit
2cf7897a99
2 changed files with 2 additions and 14 deletions
  1. 1 13
      docker-compose.yml
  2. 1 1
      src/main.py

+ 1 - 13
docker-compose.yml

@@ -2,21 +2,9 @@ version: '3.8'
 
 networks:
   default:
-    name: milvus
+    name: default-network
 
 services:
-  # search-image:
-  #   container_name: milvus-etcd
-  #   image: quay.io/coreos/etcd:v3.5.5
-  #   environment:
-  #     - ETCD_AUTO_COMPACTION_MODE=revision
-  #     - ETCD_AUTO_COMPACTION_RETENTION=1000
-  #     - ETCD_QUOTA_BACKEND_BYTES=4294967296
-  #     - ETCD_SNAPSHOT_COUNT=50000
-  #   volumes:
-  #     - ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd
-  #   command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
-
   search-image:
     image: registry.cn-chengdu.aliyuncs.com/infish/search-image:v1.0.0
     restart: always

+ 1 - 1
src/main.py

@@ -71,7 +71,7 @@ if not os.path.exists(UPLOAD_PATH):
 #         LOGGER.error(e)
 #         return {'status': False, 'msg': e}, 400
 
-# file:image,query:id,url,table_name
+# file:image,query:table_name,partition_name,im_hash,product_id,url
 
 @app.post('/img/upload')
 async def upload_images(