Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

refactor: remove redis in yaml (#20313)

Jin Hai307a70285ebd
diff --git a/conf/service_conf.yaml b/conf/service_conf.yaml
index e11a5b9df6..45aefef45a 100644
--- a/conf/service_conf.yaml
+++ b/conf/service_conf.yaml
@@ -74,11 +74,6 @@ oceanbase:
password: 'infini_rag_flow'
host: 'localhost'
port: 2881
-redis:
- db: 1
- username: ''
- password: 'infini_rag_flow'
- host: 'localhost:6379'
kvrocks:
db: 1
username: ''
diff --git a/docker/docker-compose-base.yml b/docker/docker-compose-base.yml
index e469177ca4..9cafb62a8a 100644
--- a/docker/docker-compose-base.yml
+++ b/docker/docker-compose-base.yml
@@ -295,26 +295,6 @@ services:
timeout: 10s
retries: 120
- redis:
- # Valkey 8 is the cache/queue backend for the Python services. The Go
- # services use a separate `kvrocks` service (defined below) so the Python
- # path is left unchanged by the Valkey -> apache/kvrocks migration.
- image: valkey/valkey:8
- command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}", "--maxmemory", "1gb", "--maxmemory-policy", "volatile-lru"]
- env_file: .env
- ports:
- - ${REDIS_PORT}:6379
- volumes:
- - redis_data:/data
- networks:
- - ragflow
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
- interval: 10s
- timeout: 10s
- retries: 120
-
kvrocks:
# Apache Kvrocks: a RocksDB-backed, Redis-protocol-compatible store used
# ONLY by the Go services (ragflow-cpu / ragflow-gpu), which override
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index bc12f1a80e..7b2042c29b 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -2,15 +2,6 @@ include:
- ./docker-compose-base.yml
# To ensure that the container processes the locally modified `service_conf.yaml.template` instead of the one included in its image, you need to mount the local `service_conf.yaml.template` to the container.
services:
- # The Go stack uses Kvrocks exclusively (see the `kvrocks` service) and does
- # not need Valkey. Disable the Valkey `redis` service inherited from the base
- # compose by giving it a profile the Go deployment never activates, so it does
- # not occupy the Redis port slot and Kvrocks can use a dedicated, CI-offset
- # host-published port (see docker-compose-base.yml; the variable is KVROCKS_PORT,
- # offset per CI job and distinct from REDIS_PORT).
- redis:
- profiles:
- - ragflow-py
deepdoc:
image: ${DEEPDOC_IMAGE:-deepdoc_oss:latest}
diff --git a/docker/service_conf.yaml.template b/docker/service_conf.yaml.template
index bbd8b521d9..5ce8d3a7d5 100644
--- a/docker/service_conf.yaml.template
+++ b/docker/service_conf.yaml.template
@@ -91,14 +91,6 @@ seekdb:
password: '${SEEKDB_PASSWORD:-infini_rag_flow}'
host: '${SEEKDB_HOST:-seekdb}'
port: ${SEEKDB_PORT:-2881}
-redis:
- db: 1
- username: '${REDIS_USERNAME:-}'
- password: '${REDIS_PASSWORD:-infini_rag_flow}'
- host: '${REDIS_HOST:-redis}:6379'
-# Kvrocks is the RocksDB-backed, Redis-protocol store used ONLY by the Go
-# services. It has no in-memory maxmemory cap, so it does not OOM the way
-# Valkey/Redis does. The Go services read this section; the Python services
kvrocks:
db: 1
username: '${KVROCKS_USERNAME:-}'