2024-11-05 15:21:37 +08:00
# README
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
## Docker environment variables
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
Look into [.env ](./.env ), there're some important variables.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `STACK_VERSION`
The Elasticsearch version. Defaults to `8.11.3`
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `ES_PORT`
Port to expose Elasticsearch HTTP API to the host. Defaults to `1200` .
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `ELASTIC_PASSWORD`
The Elasticsearch password.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `MYSQL_PASSWORD`
The MySQL password. When updated, you must also revise the `mysql.password` entry in [service_conf.yaml ](./service_conf.yaml ) accordingly.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `MYSQL_PORT`
The exported port number of MySQL Docker container, needed when you access the database from outside the docker containers.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `MINIO_USER`
The MinIO username. When updated, you must also revise the `minio.user` entry in [service_conf.yaml ](./service_conf.yaml ) accordingly.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `MINIO_PASSWORD`
The MinIO password. When updated, you must also revise the `minio.password` entry in [service_conf.yaml ](./service_conf.yaml ) accordingly.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `SVR_HTTP_PORT`
The port number on which RAGFlow's backend API server listens.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `RAGFLOW-IMAGE`
The Docker image edition. Available options:
- `infiniflow/ragflow:dev-slim` (default): The RAGFlow Docker image without embedding models
- `infiniflow/ragflow:dev` : The RAGFlow Docker image with embedding models. See the
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `TIMEZONE`
The local time zone.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
## Service Configuration
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
[service_conf.yaml ](./service_conf.yaml ) defines the system-level configuration for RAGFlow and is used by RAGFlow's *API server* and *task executor* .
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `ragflow`
- `host` : The IP address of the API server.
- `port` : The serving port of API server.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `mysql`
- `name` : The database name in MySQL used by RAGFlow.
- `user` : The database name in MySQL used by RAGFlow.
- `password` : The database password. When updated, you must also revise the `MYSQL_PASSWORD` variable in [.env ](./.env ) accordingly.
- `port` : The serving port of MySQL inside the container. When updated, you must also revise the `MYSQL_PORT` variable in [.env ](./.env ) accordingly.
- `max_connections` : The maximum database connection.
- `stale_timeout` : The timeout duration in seconds.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `minio`
- `user` : The MinIO username. When updated, you must also revise the `MINIO_USER` variable in [.env ](./.env ) accordingly.
- `password` : The MinIO password. When updated, you must also revise the `MINIO_PASSWORD` variable in [.env ](./.env ) accordingly.
- `host` : The serving IP and port inside the docker container. This is not updating until changing the minio part in [docker-compose.yml ](./docker-compose.yml )
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `user_default_llm`
Newly signed-up users use LLM configured by this part; otherwise, you need to configure your own LLM on the *Settings* page.
- `factory` : The LLM suppliers. "OpenAI", "Tongyi-Qianwen", "ZHIPU-AI", "Moonshot", "DeepSeek", "Baichuan", and "VolcEngine" are supported.
- `api_key` : The API key for the specified LLM.
2024-08-15 09:17:36 +08:00
2024-11-05 15:21:37 +08:00
- `oauth`
The OAuth configuration for signing up or signing in to RAGFlow using a third-party account.
- `github` : Go to [Github ](https://github.com/settings/developers ), register a new application, the *client_id* and *secret_key* will be given.
2024-08-15 09:17:36 +08:00