Processed apps directory via GitHub Actions

This commit is contained in:
QYG2297248353
2024-12-02 07:52:19 +00:00
parent f13f5531a9
commit 9f9e71b0c4
29 changed files with 936 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
# MySQL 服务 (前置检查) [必填]
PANEL_DB_TYPE=mysql
# Redis 服务 (前置检查) [必填]
PANEL_REDIS_TYPE=redis
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=1898
# 管理员 用户名 [必填]
ADMIN_USERNAME=admin
# 管理员 密码 [必填]
topiam.cn=topiam.cn
# 数据库 主机 [必填]
DB_HOST=127.0.0.1
# 数据库 端口 [必填]
DB_PORT=3306
# 数据库 用户名 [必填]
DB_USER=topiam
# 数据库 密码 [必填]
DB_USER_PASSWORD=
# 数据库 名称 [必填]
DB_NAME=topiam
# Redis 主机 [必填]
REDIS_HOSTNAME=127.0.0.1
# Redis 端口 [必填]
REDIS_PORT=6379
# Redis 索引 [必填]
REDIS_DBINDEX=0
# Redis 密码
REDIS_PASSWORD=
+124
View File
@@ -0,0 +1,124 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: mysql
edit: true
envKey: PANEL_DB_TYPE
labelZh: MySQL 服务 (前置检查)
labelEn: Database Service (Pre-check)
required: true
type: apps
values:
- label: MySQL
value: mysql
- label: MariaDB
value: mariadb
- label: Percona
value: percona
- child:
default: ""
envKey: PANEL_REDIS_SERVICE
required: true
type: service
default: redis
envKey: PANEL_REDIS_TYPE
labelZh: Redis 服务 (前置检查)
labelEn: Redis Service (Pre-check)
required: true
type: apps
values:
- label: Redis
value: redis
- default: 1898
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
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
labelZh: 数据库 主机
labelEn: Database Host
required: true
type: text
- default: 3306
edit: true
envKey: DB_PORT
labelZh: 数据库 端口
labelEn: Database Port
required: true
rule: paramPort
type: number
- default: "topiam"
edit: true
envKey: DB_USER
labelZh: 数据库 用户名
labelEn: Database Username
required: true
type: text
- default: ""
edit: true
envKey: DB_USER_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
required: true
type: password
- default: "topiam"
edit: true
envKey: DB_NAME
labelZh: 数据库 名称
labelEn: Database Name
required: true
type: text
- default: "127.0.0.1"
edit: true
envKey: REDIS_HOSTNAME
labelZh: Redis 主机
labelEn: Redis Host
required: true
type: text
- default: 6379
edit: true
envKey: REDIS_PORT
labelZh: Redis 端口
labelEn: Redis Port
required: true
rule: paramPort
type: number
- default: 0
edit: true
envKey: REDIS_DBINDEX
labelZh: Redis 索引
labelEn: Redis Index
required: true
type: number
- default: ""
edit: true
envKey: REDIS_PASSWORD
labelZh: Redis 密码
labelEn: Redis Password
required: false
type: password
@@ -0,0 +1,29 @@
networks:
1panel-network:
external: true
services:
topiam-ce:
container_name: topiam-ce
env_file:
- ./envs/global.env
- .env
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}
- spring.data.redis.host=${REDIS_HOSTNAME}
- spring.data.redis.port=${REDIS_PORT}
- spring.data.redis.password=${REDIS_PASSWORD}
- spring.data.redis.database=${REDIS_DBINDEX}
image: registry.cn-hangzhou.aliyuncs.com/topiam/topiam-ce:2.0.0
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:1898
restart: always
volumes:
- ${TOPIAM_CE_ROOT_PATH}/conf:/opt/topiam/conf
- ${TOPIAM_CE_ROOT_PATH}/logs:/opt/topiam/logs
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
chown -R 1001:1001 data/logs