1
0

Update app version [skip ci]

This commit is contained in:
github-action update-app-version
2025-06-21 01:28:21 +00:00
parent 04da64fb4d
commit 427c5316c0
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
CONTAINER_NAME="flarum"
PANEL_APP_PORT_HTTP="40020"
DATA_PATH="./data"
PANEL_DB_HOST="127.0.0.1"
FLARUM_DB_PORT="3306"
PANEL_DB_NAME="flarum"
PANEL_DB_USER="flarum"
PANEL_DB_USER_PASSWORD="MyDBPWD_brls9UwcRasl"
PANEL_DB_PREFIX="flarum_"
FLARUM_EXTERNAL_URL="http://localhost:40020"

View File

@@ -0,0 +1,78 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
default: mysql
labelEn: Database Service
labelZh: 数据库服务
params:
- envKey: FLARUM_DB_PORT
key: mysql
type: param
value: "3306"
- envKey: FLARUM_DB_PORT
key: postgresql
type: param
value: "5432"
required: true
type: apps
values:
- label: MySQL
value: mysql
- default: flarum
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: flarum
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: flarum
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: flarum_
envKey: PANEL_DB_PREFIX
labelEn: Database prefix
labelZh: 数据库前缀
required: true
type: text
- default: 40020
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text
- default: http://localhost:40020
edit: true
envKey: FLARUM_EXTERNAL_URL
labelEn: External URL
labelZh: 外部访问地址
required: true
type: text

View File

@@ -0,0 +1,35 @@
services:
flarum:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8000"
volumes:
- "${DATA_PATH}:/data"
environment:
- TZ=Asia/Shanghai
- PUID=1000
- PGID=1000
- MEMORY_LIMIT=256M
- UPLOAD_MAX_SIZE=256M
- CLEAR_ENV=yes
- OPCACHE_MEM_SIZE=128M
- LISTEN_IPV6=true
- REAL_IP_FROM=0.0.0.0/32
- DB_HOST=${PANEL_DB_HOST}
- DB_PORT=${FLARUM_DB_PORT}
- DB_NAME=${PANEL_DB_NAME}
- DB_USER=${PANEL_DB_USER}
- DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
- DB_PREFIX=${PANEL_DB_PREFIX}
- DB_NOPREFIX=false
- DB_TIMEOUT=60
- FLARUM_BASE_URL=${FLARUM_EXTERNAL_URL}
image: crazymax/flarum:1.8.10
labels:
createdBy: Apps
networks:
1panel-network:
external: true