Skip to content

Commit 7bae186

Browse files
authored
Merge pull request #10 from GrapeCity-AI/ian_fix_0725
Ian fix 0725
2 parents c91f773 + 7d61811 commit 7bae186

File tree

12 files changed

+301
-229
lines changed

12 files changed

+301
-229
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,11 @@ docker compose up -d --build
7777
ETL 管理后台部署:
7878

7979
```bash
80-
# 进入 ETL 目录
80+
# 1. 进入 ETL 目录
8181
cd sources/gc-qa-rag-etl
8282

83-
# 构建 Docker 镜像
84-
docker build -t rag-etl:latest .
85-
86-
# 运行容器
87-
docker run -d \
88-
--name rag-etl \
89-
-p 8001:8001 \
90-
-e GC_QA_RAG_ENV=production \
91-
rag-etl:latest
83+
# 2. 构建 Docker 镜像
84+
docker compose up -d --build
9285
```
9386

9487
**第三步:上传数据并开始使用**

README_ENGLISH.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,11 @@ docker compose up -d --build
7373
ETL management backend deployment:
7474

7575
```bash
76-
# Enter ETL directory
76+
# 1. Enter ETL directory
7777
cd sources/gc-qa-rag-etl
7878

79-
# Build Docker image
80-
docker build -t rag-etl:latest .
81-
82-
# Run container
83-
docker run -d \
84-
--name rag-etl \
85-
-p 8001:8001 \
86-
-e GC_QA_RAG_ENV=production \
87-
rag-etl:latest
79+
# 2. Start all services
80+
docker compose up -d --build
8881
```
8982

9083
**Step 3: Upload Data and Start Using**

sources/gc-qa-rag-etl/.config.development.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"api_key": ""
1414
},
1515
"vector_db": {
16-
"host": "http://localhost:6333"
16+
"host": "http://host.docker.internal:6333"
1717
},
1818
"root_path": "./.rag-cache",
1919
"log_path": "./"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "3.8"
2+
3+
services:
4+
rag-etl:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
container_name: rag_etl_container
9+
restart: on-failure
10+
environment:
11+
GC_QA_RAG_ENV: production
12+
ports:
13+
- "8001:8001"
14+
volumes:
15+
- rag-etl-cache:/app/.rag-cache
16+
17+
volumes:
18+
rag-etl-cache:

0 commit comments

Comments
 (0)