Updated Docker README (#3272)

### What problem does this PR solve?


### Type of change

- [x] Documentation Update
This commit is contained in:
writinwaters 2024-11-08 09:22:40 +08:00 committed by GitHub
parent 9c6cc20356
commit 416efbe7e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
# README # README
<details open> <details open>
<summary></b>📕 Table of Contents</b></summary> <summary></b>📗 Table of Contents</b></summary>
- 🐳 [Docker Compose](#-docker-compose) - 🐳 [Docker Compose](#-docker-compose)
- 🐬 [Docker environment variables](#-docker-environment-variables) - 🐬 [Docker environment variables](#-docker-environment-variables)
@ -30,7 +30,7 @@ The [.env](./.env) file contains important environment variables for Docker.
### Kibana ### Kibana
- `KIBANA_PORT` - `KIBANA_PORT`
The port used to expose the Kibana service to the host machine. Defaults to `6601`. The port used to expose the Kibana service to the host machine, allowing external access to the service running **inside** the Docker container. Defaults to `6601`.
- `KIBANA_USER` - `KIBANA_USER`
The username for Kibana. Defaults to `rag_flow`. The username for Kibana. Defaults to `rag_flow`.
- `KIBANA_PASSWORD` - `KIBANA_PASSWORD`
@ -39,7 +39,7 @@ The [.env](./.env) file contains important environment variables for Docker.
### Resource management ### Resource management
- `MEM_LIMIT` - `MEM_LIMIT`
The maximum amount of the memory that *a specific* Docker container can use while running. Defaults to `8073741824`. The maximum amount of the memory, in bytes, that *a specific* Docker container can use while running. Defaults to `8073741824`.
### MySQL ### MySQL
@ -90,15 +90,16 @@ The [.env](./.env) file contains important environment variables for Docker.
- `nomic-ai/nomic-embed-text-v1.5` - `nomic-ai/nomic-embed-text-v1.5`
- `sentence-transformers/all-MiniLM-L6-v2` - `sentence-transformers/all-MiniLM-L6-v2`
> [!TIP] > [!TIP]
> > If you cannot download the RAGFlow Docker image, try the following mirrors.
> If you cannot download the RAGFlow Docker image, try the following mirrors. > For `dev-slim`:
> - For `dev-slim`: >
> - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim` or, > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim` or,
> - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim`. > - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim`.
> - For `dev`: > For `dev`:
> - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev` or, >
> - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev`. > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev` or,
> - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev`.
### Miscellaneous ### Miscellaneous
@ -126,12 +127,12 @@ The [.env](./.env) file contains important environment variables for Docker.
- `password`: The password for MinIO. When updated, you must revise the `MINIO_PASSWORD` variable in [.env](./.env) accordingly. - `password`: The password for MinIO. When updated, you must revise the `MINIO_PASSWORD` variable in [.env](./.env) accordingly.
- `host`: The MinIO serving IP *and* port **inside** the Docker container. Defaults to `minio:9000`. - `host`: The MinIO serving IP *and* port **inside** the Docker container. Defaults to `minio:9000`.
- `oauth`
The OAuth configuration for signing up or signing in to RAGFlow using a third-party account. It is disabled by default. To enable this feature, uncomment the corresponding lines in **service_conf.yaml**.
- `github`: The GitHub authentication settings for your application. Visit the [Github Developer Settings page](https://github.com/settings/developers) to obtain your client_id and secret_key.
- `user_default_llm` - `user_default_llm`
The default LLM to use for a new RAGFlow user. It is disabled by default. To enable this feature, uncomment the corresponding lines in **service_conf.yaml**. The default LLM to use for a new RAGFlow user. It is disabled by default. To enable this feature, uncomment the corresponding lines in **service_conf.yaml**.
> [!TIP]
>
> If you do not set the default LLM here, configure the default LLM on the **Settings** page in the RAGFlow UI.
- `factory`: The LLM supplier. Available options: - `factory`: The LLM supplier. Available options:
- `"OpenAI"` - `"OpenAI"`
- `"DeepSeek"` - `"DeepSeek"`
@ -140,6 +141,6 @@ The [.env](./.env) file contains important environment variables for Docker.
- `"VolcEngine"` - `"VolcEngine"`
- `"ZHIPU-AI"` - `"ZHIPU-AI"`
- `api_key`: The API key for the specified LLM. You will need to apply for your model API key online. - `api_key`: The API key for the specified LLM. You will need to apply for your model API key online.
- `oauth`
The OAuth configuration for signing up or signing in to RAGFlow using a third-party account. It is disabled by default. To enable this feature, uncomment the corresponding lines in **service_conf.yaml**. > [!TIP]
- `github`: The GitHub authentication settings for your application. Visit the [Github Developer Settings page](https://github.com/settings/developers) to obtain your client_id and secret_key. > If you do not set the default LLM here, configure the default LLM on the **Settings** page in the RAGFlow UI.