mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-23 11:36:38 +08:00
Unify MySQL configuration (#12644)
### What problem does this PR solve? Align MySQL defaults between docker/.env and docker/service_conf.yaml.template close #12645 ### Type of change - [x] Other (please describe):Unify MySQL configuration
This commit is contained in:
@ -113,9 +113,12 @@ MYSQL_PASSWORD=infini_rag_flow
|
||||
MYSQL_HOST=mysql
|
||||
# The database of the MySQL service to use
|
||||
MYSQL_DBNAME=rag_flow
|
||||
# The port used to connect to MySQL from RAGFlow container.
|
||||
# Change this if you use external MySQL.
|
||||
MYSQL_PORT=3306
|
||||
# The port used to expose the MySQL service to the host machine,
|
||||
# allowing EXTERNAL access to the MySQL database running inside the Docker container.
|
||||
MYSQL_PORT=5455
|
||||
EXPOSE_MYSQL_PORT=5455
|
||||
# The maximum size of communication packets sent to the MySQL server
|
||||
MYSQL_MAX_PACKET=1073741824
|
||||
|
||||
|
||||
@ -52,6 +52,8 @@ The [.env](./.env) file contains important environment variables for Docker.
|
||||
- `MYSQL_PASSWORD`
|
||||
The password for MySQL.
|
||||
- `MYSQL_PORT`
|
||||
The port to connect to MySQL from RAGFlow container. Defaults to `3306`. Change this if you use an external MySQL.
|
||||
- `EXPOSE_MYSQL_PORT`
|
||||
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`.
|
||||
|
||||
### MinIO
|
||||
|
||||
@ -188,7 +188,7 @@ services:
|
||||
--init-file /data/application/init.sql
|
||||
--binlog_expire_logs_seconds=604800
|
||||
ports:
|
||||
- ${MYSQL_PORT}:3306
|
||||
- ${EXPOSE_MYSQL_PORT}:3306
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- ./init.sql:/data/application/init.sql
|
||||
|
||||
@ -9,7 +9,7 @@ mysql:
|
||||
user: '${MYSQL_USER:-root}'
|
||||
password: '${MYSQL_PASSWORD:-infini_rag_flow}'
|
||||
host: '${MYSQL_HOST:-mysql}'
|
||||
port: 3306
|
||||
port: ${MYSQL_PORT:-3306}
|
||||
max_connections: 900
|
||||
stale_timeout: 300
|
||||
max_allowed_packet: ${MYSQL_MAX_PACKET:-1073741824}
|
||||
|
||||
Reference in New Issue
Block a user