Skip to content

Commit 2b3ed4b

Browse files
authored
feat: update Milvus configuration for improved service integration #404
1 parent 8c0a49f commit 2b3ed4b

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

deployment/docker/datamate/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ services:
3030
- log_level=DEBUG
3131
- pgsql_password=${DB_PASSWORD:-password}
3232
- datamate_jwt_enable=${DATAMATE_JWT_ENABLE:-false}
33+
- milvus_uri=${MILVUS_URI:-http://milvus:19530}
3334
volumes:
3435
- dataset_volume:/dataset
3536
- flow_volume:/flow

deployment/helm/datamate/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ backend-python:
140140
key: DB_PASSWORD
141141
- name: datamate_jwt_enable
142142
value: *DATAMATE_JWT_ENABLE
143+
- name: milvus_uri
144+
value: "http://milvus:19530"
143145
volumes:
144146
- *datasetVolume
145147
- *flowVolume

runtime/datamate-python/.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ LABEL_STUDIO_BASE_URL=http://localhost:30001
2020
LABEL_STUDIO_USER_TOKEN="demo_dev_token"
2121

2222
DATAMATE_JWT_ENABLE=false
23+
24+
# Milvus settings (Vector Database)
25+
# Development: use localhost
26+
MILVUS_URI=http://localhost:19530
27+
MILVUS_TOKEN=
28+
# Production: use service name
29+
# MILVUS_URI=http://milvus:19530

runtime/datamate-python/app/core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def build_database_url(self):
7878
datamate_jwt_enable: bool = False
7979

8080
# Milvus 配置
81-
milvus_uri: str = "http://localhost:19530"
81+
milvus_uri: str = "http://milvus:19530"
8282
milvus_token: str = ""
8383

8484
# 文件存储配置(共享文件系统)

0 commit comments

Comments
 (0)