feat: 调整es镜像

This commit is contained in:
李如威 2025-12-18 10:22:03 +08:00
parent 88ddcaa11f
commit 78965ded3e
3 changed files with 30 additions and 4 deletions

View File

@ -3,3 +3,27 @@
```python
pytest -s src/test/test.py
```
## 打包基础镜像
```bash
cd docker
docker build -f ES_Dockerfile -t es-ik:8.4.1 .
```
## 结构
```
Query
|
Query Rewrite
|
┌──────┴────────┐
| |
BM25 (ES) Vector (ES)
| |
└──────┬────────┘
Merge / Rerank
|
LLM
```

View File

@ -8,9 +8,9 @@ volumes:
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.2.2
image: es-ik:8.4.1
container_name: elasticsearch
user: "1000:1000"
# user: "1000:1000"
environment:
- discovery.type=single-node # 单节点模式
- xpack.security.enabled=true # 开启安全

View File

@ -1,4 +1,6 @@
FROM docker.elastic.co/elasticsearch/elasticsearch:9.2.2
FROM docker.elastic.co/elasticsearch/elasticsearch:8.4.1
# 安装 IK 分词器, 最大兼容中文
RUN bin/elasticsearch-plugin install https://get.infini.cloud/elasticsearch/analysis-ik/8.4.1
RUN bin/elasticsearch-plugin install --batch \
https://get.infini.cloud/elasticsearch/analysis-ik/8.4.1