mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Added doc for switching elasticsearch to infinity (#3370)
### What problem does this PR solve? Added doc for switching elasticsearch to infinity ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Documentation Update
This commit is contained in:
11
docker/.env
11
docker/.env
@ -1,3 +1,14 @@
|
||||
# The type of doc engine to use.
|
||||
# Supported values are `elasticsearch`, `infinity`.
|
||||
DOC_ENGINE=${DOC_ENGINE:-elasticsearch}
|
||||
|
||||
# ------------------------------
|
||||
# docker env var for specifying vector db type at startup
|
||||
# (based on the vector db type, the corresponding docker
|
||||
# compose profile will be used)
|
||||
# ------------------------------
|
||||
COMPOSE_PROFILES=${DOC_ENGINE}
|
||||
|
||||
# The version of Elasticsearch.
|
||||
STACK_VERSION=8.11.3
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
services:
|
||||
es01:
|
||||
container_name: ragflow-es-01
|
||||
profiles:
|
||||
- elasticsearch
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
|
||||
volumes:
|
||||
- esdata01:/usr/share/elasticsearch/data
|
||||
@ -30,31 +32,33 @@ services:
|
||||
- ragflow
|
||||
restart: on-failure
|
||||
|
||||
# infinity:
|
||||
# container_name: ragflow-infinity
|
||||
# image: infiniflow/infinity:v0.5.0-dev2
|
||||
# volumes:
|
||||
# - infinity_data:/var/infinity
|
||||
# ports:
|
||||
# - ${INFINITY_THRIFT_PORT}:23817
|
||||
# - ${INFINITY_HTTP_PORT}:23820
|
||||
# - ${INFINITY_PSQL_PORT}:5432
|
||||
# env_file: .env
|
||||
# environment:
|
||||
# - TZ=${TIMEZONE}
|
||||
# mem_limit: ${MEM_LIMIT}
|
||||
# ulimits:
|
||||
# nofile:
|
||||
# soft: 500000
|
||||
# hard: 500000
|
||||
# networks:
|
||||
# - ragflow
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "http://localhost:23820/admin/node/current"]
|
||||
# interval: 10s
|
||||
# timeout: 10s
|
||||
# retries: 120
|
||||
# restart: on-failure
|
||||
infinity:
|
||||
container_name: ragflow-infinity
|
||||
profiles:
|
||||
- infinity
|
||||
image: infiniflow/infinity:v0.5.0-dev2
|
||||
volumes:
|
||||
- infinity_data:/var/infinity
|
||||
ports:
|
||||
- ${INFINITY_THRIFT_PORT}:23817
|
||||
- ${INFINITY_HTTP_PORT}:23820
|
||||
- ${INFINITY_PSQL_PORT}:5432
|
||||
env_file: .env
|
||||
environment:
|
||||
- TZ=${TIMEZONE}
|
||||
mem_limit: ${MEM_LIMIT}
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 500000
|
||||
hard: 500000
|
||||
networks:
|
||||
- ragflow
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "http://localhost:23820/admin/node/current"]
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 120
|
||||
restart: on-failure
|
||||
|
||||
|
||||
mysql:
|
||||
|
||||
@ -6,8 +6,6 @@ services:
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
es01:
|
||||
condition: service_healthy
|
||||
image: ${RAGFLOW_IMAGE}
|
||||
container_name: ragflow-server
|
||||
ports:
|
||||
|
||||
@ -16,7 +16,7 @@ minio:
|
||||
es:
|
||||
hosts: 'http://${ES_HOST:-es01}:9200'
|
||||
username: '${ES_USER:-elastic}'
|
||||
password: '${ES_PASSWORD:-infini_rag_flow}'
|
||||
password: '${ELASTIC_PASSWORD:-infini_rag_flow}'
|
||||
redis:
|
||||
db: 1
|
||||
password: '${REDIS_PASSWORD:-infini_rag_flow}'
|
||||
|
||||
Reference in New Issue
Block a user