mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# 数据持久化路径 [必填]
|
||||
MYSQL_ROOT_PATH=/home/mysql
|
||||
|
||||
# 连接端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=3306
|
||||
|
||||
# 管理员密码 [必填]
|
||||
MYSQL_ROOT_PASSWORD=
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
[mysqld]
|
||||
host_cache_size=0
|
||||
skip-name-resolve
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
user=mysql
|
||||
|
||||
mysql_native_password=ON
|
||||
character_set_server=utf8mb4
|
||||
collation_server=utf8mb4_unicode_ci
|
||||
lower_case_table_names=1
|
||||
group_concat_max_len=1024000
|
||||
log_bin_trust_function_creators=1
|
||||
|
||||
secure_file_priv=
|
||||
pid_file=/var/run/mysqld/mysqld.pid
|
||||
[client]
|
||||
socket=/var/run/mysqld/mysqld.sock
|
||||
|
||||
!includedir /etc/mysql/conf.d/
|
||||
@@ -0,0 +1,24 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/mysql"
|
||||
edit: true
|
||||
envKey: MYSQL_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 连接端口
|
||||
labelEn: Connection Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
envKey: MYSQL_ROOT_PASSWORD
|
||||
labelZh: 管理员密码
|
||||
labelEn: Admin Password
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
@@ -0,0 +1,28 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
mysql:
|
||||
command:
|
||||
- --character-set-server=utf8mb4
|
||||
- --collation-server=utf8mb4_unicode_ci
|
||||
- --mysql-native-password=ON
|
||||
container_name: mysql
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
image: mysql:8.4.5
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3306
|
||||
restart: always
|
||||
user: 1000:1000
|
||||
volumes:
|
||||
- ${MYSQL_ROOT_PATH}/data:/var/lib/mysql
|
||||
- ${MYSQL_ROOT_PATH}/config/my.cnf:/etc/my.cnf
|
||||
- ${MYSQL_ROOT_PATH}/log:/var/log/mysql
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
mkdir -p "$MYSQL_ROOT_PATH"
|
||||
mkdir -p "$MYSQL_ROOT_PATH/config"
|
||||
mkdir -p "$MYSQL_ROOT_PATH/data"
|
||||
mkdir -p "$MYSQL_ROOT_PATH/log"
|
||||
|
||||
cp ./config/my.cnf "$MYSQL_ROOT_PATH/config/my.cnf"
|
||||
|
||||
chown -R 1000:1000 "$MYSQL_ROOT_PATH"
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user