mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-12 18:00:32 +08:00
feat: 优化 Focalboard 安装包
This commit is contained in:
parent
4534b41f36
commit
886aea837e
@ -1,10 +1,10 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40098
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
formFields:
|
||||
- default: 40098
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
|
@ -1,17 +0,0 @@
|
||||
{
|
||||
"serverRoot": "http://localhost:8000",
|
||||
"port": 8000,
|
||||
"dbtype": "postgres",
|
||||
"dbconfig": "postgres://boardsuser:boardsuser-password@focalboard-db/boards?sslmode=disable&connect_timeout=10",
|
||||
"postgres_dbconfig": "dbname=boards sslmode=disable",
|
||||
"useSSL": false,
|
||||
"webpath": "./pack",
|
||||
"filespath": "./data/files",
|
||||
"telemetry": true,
|
||||
"prometheusaddress": ":9092",
|
||||
"session_expire_time": 2592000,
|
||||
"session_refresh_time": 18000,
|
||||
"localOnly": false,
|
||||
"enableLocalMode": true,
|
||||
"localModeSocketLocation": "/var/tmp/focalboard_local.socket"
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
services:
|
||||
focalboard:
|
||||
image: mattermost/focalboard:7.11.4
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
@ -7,16 +8,10 @@ services:
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8000"
|
||||
volumes:
|
||||
- "./data/config.json:/opt/focalboard/config.json" #sqlite
|
||||
#- "./data/postgres-config.json:/opt/focalboard/config.json" #postgres,需要修改对应数据库信息
|
||||
- fbdata:/opt/focalboard/data
|
||||
image: mattermost/focalboard:7.11.4
|
||||
- ./data/config.json:/opt/focalboard/config.json
|
||||
- ./data/data:/opt/focalboard/data
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
volumes:
|
||||
fbdata:
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
external: true
|
3
apps/focalboard/7.11.4/scripts/init.sh
Normal file
3
apps/focalboard/7.11.4/scripts/init.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown -R 65534:65534 ./data/data
|
17
apps/focalboard/7.11.4/scripts/upgrade.sh
Normal file
17
apps/focalboard/7.11.4/scripts/upgrade.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR="./data/data"
|
||||
|
||||
if [ -d "$DIR" ]; then
|
||||
echo "目录 $DIR 已存在"
|
||||
else
|
||||
echo "目录 $DIR 不存在,正在创建..."
|
||||
mkdir -p "$DIR"
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "目录 $DIR 创建成功"
|
||||
else
|
||||
echo "目录 $DIR 创建失败"
|
||||
fi
|
||||
fi
|
||||
|
||||
chown -R 65534:65534 $DIR
|
Loading…
x
Reference in New Issue
Block a user