refactor: apisix 端口可配;数据库支持特殊字符密码

This commit is contained in:
xuwei-fit2cloud 2024-07-29 18:42:17 +08:00
parent eca2816181
commit fff26aa5d9
3 changed files with 16 additions and 6 deletions

View File

@ -8,7 +8,7 @@ services:
volumes:
- ${DE_BASE}/dataease2.0/apisix/dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
ports:
- 9000:9000
- ${DE_APISIX_DASHBOARD_PORT}:9000
networks:
dataease-network:
@ -26,8 +26,7 @@ services:
depends_on:
- etcd
ports:
- 9180:9180
- 9080:9080
- ${DE_APISIX_PORT}:9080
networks:
dataease-network:

View File

@ -19,7 +19,7 @@ DE_MYSQL_PORT=3306
DE_MYSQL_DB=dataease
## 数据库用户名
DE_MYSQL_USER=root
## 数据库密码
## 数据库密码,密码如包含特殊字符,请用双引号引起来,例如 DE_MYSQL_PASSWORD="Test@4&^%*^"
DE_MYSQL_PASSWORD=Password123@mysql
## 数据库参数
DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true"
@ -29,3 +29,9 @@ DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&cha
DE_SELENIUM_CPU_LIMIT='1'
## selenium 镜像 内存 限制
DE_SELENIUM_MEM_LIMIT=2g
# APISIX配置
## APISIX dashboard 端口
DE_APISIX_DASHBOARD_PORT=9000
## APISIX 端口
DE_APISIX_PORT=9080

View File

@ -299,9 +299,14 @@ function start_de_service() {
if [[ $DE_INSTALL_MODE != "community" ]];then
access_port=9080
fi
echo
echo -e "======================= 安装完成 =======================\n" 2>&1 | tee -a ${CURRENT_DIR}/install.log
echo -e "系统登录信息如下:\n\t访问地址: http://服务器IP:$access_port\n\t用户名: admin\n\t初始密码: DataEase@123456" 2>&1 | tee -a ${CURRENT_DIR}/install.log
if [[ $INSTALL_TYPE != "upgrade" ]];then
echo -e "======================= 安装完成 =======================\n" 2>&1 | tee -a ${CURRENT_DIR}/install.log
echo -e "系统登录信息如下:\n\t访问地址: http://服务器IP:$access_port\n\t用户名: admin\n\t初始密码: DataEase@123456" 2>&1 | tee -a ${CURRENT_DIR}/install.log
else
echo -e "======================= 升级完成 =======================\n" 2>&1 | tee -a ${CURRENT_DIR}/install.log
fi
}
function main() {