Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat(dev): add milvus service and db host config

Dounxfc5c4056398c
diff --git a/.env.example b/.env.example
index be8fb93f1..dd8bcf625 100644
--- a/.env.example
+++ b/.env.example
@@ -65,6 +65,12 @@ FRONTEND_PORT=80
# 文档解析模块端口,默认为50051
DOCREADER_PORT=50051
+# 数据库主机地址
+DB_HOST=localhost
+
+# 数据库端口
+DB_PORT=5432
+
# 数据库用户名
DB_USER=postgres
diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml
index 54b6ca87b..b92aa82f9 100644
--- a/docker-compose.dev.yml
+++ b/docker-compose.dev.yml
@@ -73,6 +73,35 @@ services:
- qdrant
- full
+ milvus:
+ image: milvusdb/milvus:v2.6.11
+ container_name: WeKnora-milvus-dev
+ security_opt:
+ - seccomp:unconfined
+ command: ["milvus", "run", "standalone"]
+ environment:
+ - ETCD_USE_EMBED=true
+ - ETCD_DATA_DIR=/var/lib/milvus/etcd
+ - COMMON_STORAGETYPE=local
+ - DEPLOY_MODE=STANDALONE
+ healthcheck:
+ test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
+ interval: 30s
+ start_period: 90s
+ timeout: 20s
+ retries: 3
+ ports:
+ - "${MILVUS_PORT:-19530}:19530"
+ - "${MILVUS_HEALTH_PORT:-9091}:9091"
+ volumes:
+ - milvus_data_dev:/var/lib/milvus
+ networks:
+ - WeKnora-network-dev
+ restart: unless-stopped
+ profiles:
+ - milvus
+ - full
+
neo4j:
image: neo4j:latest
container_name: WeKnora-neo4j-dev
@@ -168,5 +197,5 @@ volumes:
neo4j-data-dev:
jaeger_data_dev:
qdrant_data_dev:
+ milvus_data_dev:
docreader-tmp-dev:
-