writinwaters commited on
Commit
8593299
Β·
1 Parent(s): 50eb137

Updated .env and Docker README (#3295)

Browse files

### What problem does this PR solve?


### Type of change


- [x] Documentation Update

Files changed (3) hide show
  1. docker/.env +59 -39
  2. docker/README.md +29 -26
  3. docker/service_conf.yaml +1 -1
docker/.env CHANGED
@@ -1,75 +1,95 @@
1
- # Version of Elastic products
2
  STACK_VERSION=8.11.3
3
 
4
- # Port to expose Elasticsearch HTTP API to the host
 
5
  ES_PORT=1200
6
 
7
- # Set the Elasticsearch password
 
8
  ELASTIC_PASSWORD=infini_rag_flow
9
 
10
- # Port to expose Kibana to the host
 
11
  KIBANA_PORT=6601
12
  KIBANA_USER=rag_flow
13
  KIBANA_PASSWORD=infini_rag_flow
14
 
15
- # Update according to the available host memory (in bytes)
16
-
17
  MEM_LIMIT=8073741824
18
 
 
 
19
  MYSQL_PASSWORD=infini_rag_flow
 
 
20
  MYSQL_PORT=5455
21
 
22
- # Port to expose minio to the host
 
23
  MINIO_CONSOLE_PORT=9001
 
 
24
  MINIO_PORT=9000
25
-
 
26
  MINIO_USER=rag_flow
 
 
27
  MINIO_PASSWORD=infini_rag_flow
28
 
 
 
29
  REDIS_PORT=6379
 
 
30
  REDIS_PASSWORD=infini_rag_flow
31
 
 
 
32
  SVR_HTTP_PORT=9380
33
 
34
- # the Docker image for the slim version
 
35
  RAGFLOW_IMAGE=infiniflow/ragflow:dev-slim
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
- # If you cannot download the RAGFlow Docker image, try uncommenting either of the following hub.docker.com mirrors:
 
 
 
38
  # RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim
39
  # RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim
40
-
41
- # To download the RAGFlow Docker image with embedding models, modify the line above as follows:
42
- # RAGFLOW_IMAGE=infiniflow/ragflow:dev
43
-
44
- # This Docker image includes the following four models:
45
- # - BAAI/bge-large-zh-v1.5
46
- # - BAAI/bge-reranker-v2-m3
47
- # - maidalun1020/bce-embedding-base_v1
48
- # - maidalun1020/bce-reranker-base_v1
49
-
50
- # And the following models will be downloaded if you select them in the RAGFlow UI.
51
- # - BAAI/bge-base-en-v1.5
52
- # - BAAI/bge-large-en-v1.5
53
- # - BAAI/bge-small-en-v1.5
54
- # - BAAI/bge-small-zh-v1.5
55
- # - jinaai/jina-embeddings-v2-base-en
56
- # - jinaai/jina-embeddings-v2-small-en
57
- # - nomic-ai/nomic-embed-text-v1.5
58
- # - sentence-transformers/all-MiniLM-L6-v2
59
-
60
- # If you cannot download the RAGFlow Docker image, try uncommenting either of the following hub.docker.com mirrors:
61
  # RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev
62
  # RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev
63
 
 
 
64
  TIMEZONE='Asia/Shanghai'
65
 
66
- # If you cannot download the RAGFlow Docker image, try uncommenting the following huggingface.co mirror:
67
  # HF_ENDPOINT=https://hf-mirror.com
68
 
69
- ######## OS setup for ES ###########
70
- # sysctl vm.max_map_count
71
- # sudo sysctl -w vm.max_map_count=262144
72
- # Note that this change is not permanent and will be reset after a system reboot.
73
- # To make your change permanent, update /etc/sysctl.conf by:
74
- # Adding or modifying the following line:
75
- # vm.max_map_count=262144
 
1
+ # The version of Elasticsearch.
2
  STACK_VERSION=8.11.3
3
 
4
+ # The port used to expose the Elasticsearch service to the host machine,
5
+ # allowing EXTERNAL access to the service running inside the Docker container.
6
  ES_PORT=1200
7
 
8
+ # The password for Elasticsearch.
9
+ # When updated, you must revise the `es.password` entry in service_conf.yaml accordingly.
10
  ELASTIC_PASSWORD=infini_rag_flow
11
 
12
+ # The port used to expose the Kibana service to the host machine,
13
+ # allowing EXTERNAL access to the service running inside the Docker container.
14
  KIBANA_PORT=6601
15
  KIBANA_USER=rag_flow
16
  KIBANA_PASSWORD=infini_rag_flow
17
 
18
+ # The maximum amount of the memory, in bytes, that a specific Docker container can use while running.
19
+ # Update it according to the available memory in the host machine.
20
  MEM_LIMIT=8073741824
21
 
22
+ # The password for MySQL.
23
+ # When updated, you must revise the `mysql.password` entry in service_conf.yaml.
24
  MYSQL_PASSWORD=infini_rag_flow
25
+ # The port used to expose the MySQL service to the host machine,
26
+ # allowing EXTERNAL access to the MySQL database running inside the Docker container.
27
  MYSQL_PORT=5455
28
 
29
+ # The port used to expose the MinIO console interface to the host machine,
30
+ # allowing EXTERNAL access to the web-based console running inside the Docker container.
31
  MINIO_CONSOLE_PORT=9001
32
+ # The port used to expose the MinIO API service to the host machine,
33
+ # allowing EXTERNAL access to the MinIO object storage service running inside the Docker container.
34
  MINIO_PORT=9000
35
+ # The username for MinIO.
36
+ # When updated, you must revise the `minio.user` entry in service_conf.yaml accordingly.
37
  MINIO_USER=rag_flow
38
+ # The password for MinIO.
39
+ # When updated, you must revise the `minio.password` entry in service_conf.yaml accordingly.
40
  MINIO_PASSWORD=infini_rag_flow
41
 
42
+ # The port used to expose the Redis service to the host machine,
43
+ # allowing EXTERNAL access to the Redis service running inside the Docker container.
44
  REDIS_PORT=6379
45
+ # The password for Redis.
46
+ # When updated, you must revise the `redis.password` entry in service_conf.yaml accordingly.
47
  REDIS_PASSWORD=infini_rag_flow
48
 
49
+ # The port used to expose RAGFlow's HTTP API service to the host machine,
50
+ # allowing EXTERNAL access to the service running inside the Docker container.
51
  SVR_HTTP_PORT=9380
52
 
53
+ # The RAGFlow Docker image to download.
54
+ # Defaults to the dev-slim edition.
55
  RAGFLOW_IMAGE=infiniflow/ragflow:dev-slim
56
+ #
57
+ # To download the RAGFlow Docker image with embedding models, uncomment the following line instead:
58
+ #
59
+ # This Docker image includes:
60
+ # - Embedded embedding models:
61
+ # - BAAI/bge-large-zh-v1.5
62
+ # - BAAI/bge-reranker-v2-m3
63
+ # - maidalun1020/bce-embedding-base_v1
64
+ # - maidalun1020/bce-reranker-base_v1
65
+ # - Embedding models that will be downloaded once you select them in the RAGFlow UI:
66
+ # - BAAI/bge-base-en-v1.5
67
+ # - BAAI/bge-large-en-v1.5
68
+ # - BAAI/bge-small-en-v1.5
69
+ # - BAAI/bge-small-zh-v1.5
70
+ # - jinaai/jina-embeddings-v2-base-en
71
+ # - jinaai/jina-embeddings-v2-small-en
72
+ # - nomic-ai/nomic-embed-text-v1.5
73
+ # - sentence-transformers/all-MiniLM-L6-v2
74
+ #
75
+ # RAGFLOW_IMAGE=infiniflow/ragflow:dev
76
 
77
+
78
+ # If you cannot download the RAGFlow Docker image:
79
+ #
80
+ # - For the `dev-slim` edition, uncomment either of the following:
81
  # RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim
82
  # RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim
83
+ #
84
+ # - For the `dev-slim` edition, uncomment either of the following:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  # RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev
86
  # RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev
87
 
88
+
89
+ # The local time zone.
90
  TIMEZONE='Asia/Shanghai'
91
 
92
+ # Uncomment the following line if you have limited access to huggingface.co:
93
  # HF_ENDPOINT=https://hf-mirror.com
94
 
95
+
 
 
 
 
 
 
docker/README.md CHANGED
@@ -11,8 +11,10 @@
11
 
12
  ## 🐳 Docker Compose
13
 
14
- - **docker-compose.yml**
15
- - **docker-compose-base.yml**
 
 
16
 
17
  ## 🐬 Docker environment variables
18
 
@@ -23,14 +25,14 @@ The [.env](./.env) file contains important environment variables for Docker.
23
  - `STACK_VERSION`
24
  The version of Elasticsearch. Defaults to `8.11.3`
25
  - `ES_PORT`
26
- The port used to expose the Elasticsearch service to the host machine, allowing external access to the service running **inside** the Docker container. Defaults to `1200`.
27
  - `ELASTIC_PASSWORD`
28
- The password for Elasticsearch. When updated, you must revise the `es.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
29
 
30
  ### Kibana
31
 
32
  - `KIBANA_PORT`
33
- 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`.
34
  - `KIBANA_USER`
35
  The username for Kibana. Defaults to `rag_flow`.
36
  - `KIBANA_PASSWORD`
@@ -44,32 +46,32 @@ The [.env](./.env) file contains important environment variables for Docker.
44
  ### MySQL
45
 
46
  - `MYSQL_PASSWORD`
47
- The password for MySQL. When updated, you must revise the `mysql.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
48
  - `MYSQL_PORT`
49
- The port used to expose the MySQL service to the host machine, allowing external access to the MySQL database running **inside** the Docker container. Defaults to `5455`.
50
 
51
  ### MinIO
52
 
53
  - `MINIO_CONSOLE_PORT`
54
- The port used to expose the MinIO console interface to the host machine, allowing external access to the web-based console running **inside** the Docker container. Defaults to `9001`
55
  - `MINIO_PORT`
56
- The port used to expose the MinIO API service to the host machine, allowing external access to the MinIO object storage service running **inside** the Docker container. Defaults to `9000`.
57
  - `MINIO_USER`
58
- The username for MinIO. When updated, you must revise the `minio.user` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
59
  - `MINIO_PASSWORD`
60
- The password for MinIO. When updated, you must revise the `minio.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
61
 
62
  ### Redis
63
 
64
  - `REDIS_PORT`
65
- The port used to expose the Redis service to the host machine, allowing external access to the Redis service running **inside** the Docker container. Defaults to `6379`.
66
  - `REDIS_PASSWORD`
67
- The password for Redis. When updated, you must revise the `redis.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
68
 
69
  ### RAGFlow
70
 
71
  - `SVR_HTTP_PORT`
72
- The port used to expose RAGFlow's HTTP API service to the host machine, allowing external access to the service running **inside** the Docker container. Defaults to `9380`.
73
  - `RAGFLOW-IMAGE`
74
  The Docker image edition. Available editions:
75
 
@@ -91,41 +93,42 @@ The [.env](./.env) file contains important environment variables for Docker.
91
  - `sentence-transformers/all-MiniLM-L6-v2`
92
 
93
  > [!TIP]
94
- > If you cannot download the RAGFlow Docker image, try the following mirrors.
95
- > For `dev-slim`:
96
- >
97
- > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim` or,
98
- > - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim`.
99
- > For `dev`:
100
  >
101
- > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev` or,
102
- > - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev`.
 
 
 
 
103
 
104
  ### Miscellaneous
105
 
106
  - `TIMEZONE`
107
  The local time zone. Defaults to `'Asia/Shanghai'`.
 
 
108
 
109
  ## πŸ‹ Service configuration
110
 
111
  [service_conf.yaml](./service_conf.yaml) specifies the system-level configuration for RAGFlow and is used by its API server and task executor.
112
 
113
  - `ragflow`
114
- - `host`: The API server's IP address **inside** the Docker container. Defaults to `0.0.0.0`.
115
- - `port`: The API server's serving port **inside** the Docker container. Defaults to `9380`.
116
 
117
  - `mysql`
118
  - `name`: The MySQL database name. Defaults to `rag_flow`.
119
  - `user`: The username for MySQL.
120
  - `password`: The password for MySQL. When updated, you must revise the `MYSQL_PASSWORD` variable in [.env](./.env) accordingly.
121
- - `port`: The MySQL serving port **inside** the Docker container. Defaults to `3306`.
122
  - `max_connections`: The maximum number of concurrent connections to the MySQL database. Defaults to `100`.
123
  - `stale_timeout`: Timeout in seconds.
124
 
125
  - `minio`
126
  - `user`: The username for MinIO. When updated, you must revise the `MINIO_USER` variable in [.env](./.env) accordingly.
127
  - `password`: The password for MinIO. When updated, you must revise the `MINIO_PASSWORD` variable in [.env](./.env) accordingly.
128
- - `host`: The MinIO serving IP *and* port **inside** the Docker container. Defaults to `minio:9000`.
129
 
130
  - `oauth`
131
  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**.
 
11
 
12
  ## 🐳 Docker Compose
13
 
14
+ - **docker-compose.yml**
15
+ Sets up environment for RAGFlow and its dependencies.
16
+ - **docker-compose-base.yml**
17
+ Sets up environment for RAGFlow's base services: Elasticsearch, MySQL, MinIO, and Redis.
18
 
19
  ## 🐬 Docker environment variables
20
 
 
25
  - `STACK_VERSION`
26
  The version of Elasticsearch. Defaults to `8.11.3`
27
  - `ES_PORT`
28
+ The port used to expose the Elasticsearch service to the host machine, allowing **external** access to the service running inside the Docker container. Defaults to `1200`.
29
  - `ELASTIC_PASSWORD`
30
+ The password for Elasticsearch. When updated, you must revise the `es.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
31
 
32
  ### Kibana
33
 
34
  - `KIBANA_PORT`
35
+ 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`.
36
  - `KIBANA_USER`
37
  The username for Kibana. Defaults to `rag_flow`.
38
  - `KIBANA_PASSWORD`
 
46
  ### MySQL
47
 
48
  - `MYSQL_PASSWORD`
49
+ The password for MySQL. When updated, you must revise the `mysql.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
50
  - `MYSQL_PORT`
51
+ The port used to expose the MySQL service to the host machine, allowing **external** access to the MySQL database running inside the Docker container. Defaults to `5455`.
52
 
53
  ### MinIO
54
 
55
  - `MINIO_CONSOLE_PORT`
56
+ The port used to expose the MinIO console interface to the host machine, allowing **external** access to the web-based console running inside the Docker container. Defaults to `9001`
57
  - `MINIO_PORT`
58
+ The port used to expose the MinIO API service to the host machine, allowing **external** access to the MinIO object storage service running inside the Docker container. Defaults to `9000`.
59
  - `MINIO_USER`
60
+ The username for MinIO. When updated, you must revise the `minio.user` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
61
  - `MINIO_PASSWORD`
62
+ The password for MinIO. When updated, you must revise the `minio.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
63
 
64
  ### Redis
65
 
66
  - `REDIS_PORT`
67
+ The port used to expose the Redis service to the host machine, allowing **external** access to the Redis service running inside the Docker container. Defaults to `6379`.
68
  - `REDIS_PASSWORD`
69
+ The password for Redis. When updated, you must revise the `redis.password` entry in [service_conf.yaml](./service_conf.yaml) accordingly.
70
 
71
  ### RAGFlow
72
 
73
  - `SVR_HTTP_PORT`
74
+ The port used to expose RAGFlow's HTTP API service to the host machine, allowing **external** access to the service running inside the Docker container. Defaults to `9380`.
75
  - `RAGFLOW-IMAGE`
76
  The Docker image edition. Available editions:
77
 
 
93
  - `sentence-transformers/all-MiniLM-L6-v2`
94
 
95
  > [!TIP]
96
+ > If you cannot download the RAGFlow Docker image, try the following mirrors.
 
 
 
 
 
97
  >
98
+ > - For the `dev-slim` edition:
99
+ > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev-slim` or,
100
+ > - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev-slim`.
101
+ > - For the `dev` edition:
102
+ > - `RAGFLOW_IMAGE=swr.cn-north-4.myhuaweicloud.com/infiniflow/ragflow:dev` or,
103
+ > - `RAGFLOW_IMAGE=registry.cn-hangzhou.aliyuncs.com/infiniflow/ragflow:dev`.
104
 
105
  ### Miscellaneous
106
 
107
  - `TIMEZONE`
108
  The local time zone. Defaults to `'Asia/Shanghai'`.
109
+ - `HF_ENDPOINT`
110
+ The mirror site for huggingface.co. It is disabled by default. You can uncomment this line if you have limited access to the primary Hugging Face domain.
111
 
112
  ## πŸ‹ Service configuration
113
 
114
  [service_conf.yaml](./service_conf.yaml) specifies the system-level configuration for RAGFlow and is used by its API server and task executor.
115
 
116
  - `ragflow`
117
+ - `host`: The API server's IP address inside the Docker container. Defaults to `0.0.0.0`.
118
+ - `port`: The API server's serving port inside the Docker container. Defaults to `9380`.
119
 
120
  - `mysql`
121
  - `name`: The MySQL database name. Defaults to `rag_flow`.
122
  - `user`: The username for MySQL.
123
  - `password`: The password for MySQL. When updated, you must revise the `MYSQL_PASSWORD` variable in [.env](./.env) accordingly.
124
+ - `port`: The MySQL serving port inside the Docker container. Defaults to `3306`.
125
  - `max_connections`: The maximum number of concurrent connections to the MySQL database. Defaults to `100`.
126
  - `stale_timeout`: Timeout in seconds.
127
 
128
  - `minio`
129
  - `user`: The username for MinIO. When updated, you must revise the `MINIO_USER` variable in [.env](./.env) accordingly.
130
  - `password`: The password for MinIO. When updated, you must revise the `MINIO_PASSWORD` variable in [.env](./.env) accordingly.
131
+ - `host`: The MinIO serving IP *and* port inside the Docker container. Defaults to `minio:9000`.
132
 
133
  - `oauth`
134
  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**.
docker/service_conf.yaml CHANGED
@@ -19,7 +19,7 @@ es:
19
  password: 'infini_rag_flow'
20
  redis:
21
  db: 1
22
- password: 'infini_rag_flow'
23
  host: 'redis:6379'
24
 
25
  # postgres:
 
19
  password: 'infini_rag_flow'
20
  redis:
21
  db: 1
22
+ password: 'infini_rag_flow'
23
  host: 'redis:6379'
24
 
25
  # postgres: