发布应用:Topiam

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-12-02 17:37:49 +08:00
parent 57c3d29491
commit f79ef7c15b
3 changed files with 5 additions and 19 deletions

View File

@ -47,23 +47,6 @@ additionalProperties:
required: true
rule: paramPort
type: number
- default: "admin"
edit: true
key: admin
envKey: ADMIN_USERNAME
labelZh: 管理员 用户名
labelEn: Admin Username
required: true
rule: paramCommon
type: text
- default: "topiam.cn"
edit: true
key: ADMIN_PASSWORD
envKey: topiam.cn
labelZh: 管理员 密码
labelEn: Admin Password
required: true
type: password
- default: "127.0.0.1"
edit: true
envKey: DB_HOST

View File

@ -17,10 +17,8 @@ services:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${TOPIAM_CE_ROOT_PATH}/conf:/opt/topiam/conf
- ${TOPIAM_CE_ROOT_PATH}/logs:/opt/topiam/logs
environment:
- INITIAL_PASSWORD_VALUE=ADMIN_PASSWORD
- spring.datasource.url=jdbc:mysql://${DB_HOST}:${DB_PORT}/${DB_NAME}?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
- spring.datasource.username=${DB_USER}
- spring.datasource.password=${DB_USER_PASSWORD}

View File

@ -10,6 +10,11 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
# setup-2 create directories
mkdir -p "$TOPIAM_CE_ROOT_PATH"
mkdir -p "$TOPIAM_CE_ROOT_PATH/logs"
chmod -R 777 "$TOPIAM_CE_ROOT_PATH"
echo "Check Finish."
else