From 74c20b6903355a0a9a05cd489545028dd8c0a7ab Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Wed, 22 Oct 2025 11:14:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E5=AE=89=E8=A3=85=E6=96=87=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=20docker=20=E8=87=AA=E5=8A=A8=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/public/install/index.php | 12 ++++++++- crmeb/public/install/templates/step3.php | 33 ++++++++++++------------ 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php index 59d9a5492..b242f2a96 100755 --- a/crmeb/public/install/index.php +++ b/crmeb/public/install/index.php @@ -27,7 +27,17 @@ if (phpversion() >= '8.0.0') { date_default_timezone_set('PRC'); error_reporting(E_ALL & ~E_NOTICE); header('Content-Type: text/html; charset=UTF-8'); - +//mysql数据库配置容器中获取 +$MYSQL_HOST_IP = getenv('MYSQL_HOST_IP')?:'127.0.0.1'; +$MYSQL_PORT = getenv('MYSQL_PORT')?:'3306'; +$MYSQL_USER = getenv('MYSQL_USER')?:'root'; +$MYSQL_PASSWORD = getenv('MYSQL_PASSWORD')?:'123456'; +$MYSQL_DATABASE = getenv('MYSQL_DATABASE')?:'crmeb'; +//redis配置容器中获取 +$REDIS_HOST_IP = getenv('REDIS_HOST_IP')?:'127.0.0.1'; +$REDIS_PORT = getenv('REDIS_PORT')?:'6379'; +$REDIS_DATABASE = getenv('REDIS_DATABASE')?:0; +$REDIS_PASSWORD = getenv('REDIS_PASSWORD')?:''; //数据库 $sqlFile = 'crmeb.sql'; $configFile = '.env'; diff --git a/crmeb/public/install/templates/step3.php b/crmeb/public/install/templates/step3.php index 639181b84..6fa408187 100755 --- a/crmeb/public/install/templates/step3.php +++ b/crmeb/public/install/templates/step3.php @@ -29,21 +29,21 @@ 数据库用户名: - +
数据库密码: - +
数据库名: - +
@@ -62,14 +62,14 @@ 数据库服务器: - +
数据库端口: -
@@ -81,11 +81,7 @@ - - 演示数据: - - + @@ -104,7 +100,7 @@ + + + +
管理员密码: + placeholder="请输入密码(至少6个字符)" placeholder-class="pl-style" onblur="checkForm()">
请输入至少6个字符密码
@@ -118,6 +114,11 @@
演示数据:
@@ -136,14 +137,14 @@ - + - - - + @@ -273,7 +274,7 @@ jumpButton(){ - this.$refs.mianscroll.scrollTop = this.$refs.mianscroll.clientHeight + this.$refs.mianscroll.scrollTop = this.$refs.mianscroll.clientHeight }, submitForm() { this.mysqlDbPwd().then(res => {
服务器地址:
redis服务器地址,一般为127.0.0.1
端口号: +
redis端口,默认为6379
@@ -151,7 +152,7 @@
数据库: +
redis数据库,默认为0,一般不做更改
@@ -159,7 +160,7 @@
数据库密码:
redis数据库密码