[Question]: Inquiry about Elasticsearch Login Credentials in Docker Deployment
Self Checks
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (Language Policy).
- [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
- [x] Please do not modify this template :) and fill in all the required fields.
Describe your problem
Dear RAGFlow Team,
I am currently deploying the entire RAGFlow system using Docker, with the default .env file provided by the project. My Elasticsearch instance is running at 192.168.0.x:1200.
However, I could not find any credentials or user information for accessing Elasticsearch in the default configuration.
I would like to ask the following:
- Does RAGFlow use a default username and password for Elasticsearch?
- If yes, where can I find or configure these credentials? (e.g., in
.env,docker-compose.yml, or elsewhere) - If Elasticsearch is intended to run without authentication, can I access it directly via the endpoint?
- Are there any environment variables I should update to ensure Elasticsearch works correctly with RAGFlow?
I would greatly appreciate your assistance so I can proceed with the integration.
RAGFlow uses default Elasticsearch login credentials when deploying with Docker. The default username is elastic, and the default password is infini_rag_flow. These credentials can be configured in the docker/.env file by setting the ELASTIC_PASSWORD environment variable. Additionally, you can configure them in the docker/service_conf.yaml.template file by setting the ES_USER and ELASTIC_PASSWORD environment variables. If you are deploying using Helm, the password can be set in the helm/values.yaml file under the env section by modifying the ELASTIC_PASSWORD value [1][2][3].
Regarding accessing Elasticsearch directly without authentication, I couldn't find specific documentation on this within the repository. However, you might want to check the configuration files mentioned above to see if there are options to disable authentication.
For Elasticsearch to work correctly with RAGFlow, ensure the following environment variables are set:
-
STACK_VERSION: Defaults to8.11.3. -
ES_PORT: Defaults to1200. -
ELASTIC_PASSWORD: Defaults toinfini_rag_flow. -
ES_HOST: Defaults toes01. -
DOC_ENGINE: Must be set to"elasticsearch"[4][5][6][1][7].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@dosubot Why can't I access Redis using port 6379 and the default username/password from the .env file?
RAGFlow uses default Redis login credentials specified in the .env file. The default settings are:
If you're having trouble accessing Redis, ensure that the REDIS_HOST, REDIS_PORT, and REDIS_PASSWORD environment variables are correctly set in your configuration. The REDIS_PORT should be 6379 [3][4]. Additionally, check if there are any network or firewall settings that might be blocking access to this port. If the issue persists, you might want to verify that the Redis service is running and accessible from your environment.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other