Commit
·
ca3cca9
1
Parent(s):
0e9dd76
Add env to expose minio port to the host (#426)
Browse files### What problem does this PR solve?
The docker-compose file can't config minio related port by .env file. So
I just add env `MINIO_CONSOLE_PORT=9001
MINIO_PORT=9000` to .env file.
### Type of change
- [x] Refactoring
- docker/.env +4 -0
- docker/docker-compose-base.yml +2 -2
docker/.env
CHANGED
@@ -16,6 +16,10 @@ MEM_LIMIT=4073741824
|
|
16 |
MYSQL_PASSWORD=infini_rag_flow
|
17 |
MYSQL_PORT=5455
|
18 |
|
|
|
|
|
|
|
|
|
19 |
MINIO_USER=rag_flow
|
20 |
MINIO_PASSWORD=infini_rag_flow
|
21 |
|
|
|
16 |
MYSQL_PASSWORD=infini_rag_flow
|
17 |
MYSQL_PORT=5455
|
18 |
|
19 |
+
# Port to expose minio to the host
|
20 |
+
MINIO_CONSOLE_PORT=9001
|
21 |
+
MINIO_PORT=9000
|
22 |
+
|
23 |
MINIO_USER=rag_flow
|
24 |
MINIO_PASSWORD=infini_rag_flow
|
25 |
|
docker/docker-compose-base.yml
CHANGED
@@ -80,8 +80,8 @@ services:
|
|
80 |
container_name: ragflow-minio
|
81 |
command: server --console-address ":9001" /data
|
82 |
ports:
|
83 |
-
-
|
84 |
-
-
|
85 |
environment:
|
86 |
- MINIO_ROOT_USER=${MINIO_USER}
|
87 |
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}
|
|
|
80 |
container_name: ragflow-minio
|
81 |
command: server --console-address ":9001" /data
|
82 |
ports:
|
83 |
+
- ${MINIO_PORT}:9000
|
84 |
+
- ${MINIO_CONSOLE_PORT}:9001
|
85 |
environment:
|
86 |
- MINIO_ROOT_USER=${MINIO_USER}
|
87 |
- MINIO_ROOT_PASSWORD=${MINIO_PASSWORD}
|