mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-03-12 14:40:34 +08:00
feat: 优化 Focalboard 安装包
This commit is contained in:
parent
4534b41f36
commit
886aea837e
@ -1,10 +1,10 @@
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: 40098
|
- default: 40098
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelEn: Port
|
labelEn: Port
|
||||||
labelZh: 端口
|
labelZh: 端口
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
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:
|
services:
|
||||||
focalboard:
|
focalboard:
|
||||||
|
image: mattermost/focalboard:7.11.4
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
@ -7,16 +8,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${PANEL_APP_PORT_HTTP}:8000"
|
- "${PANEL_APP_PORT_HTTP}:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/config.json:/opt/focalboard/config.json" #sqlite
|
- ./data/config.json:/opt/focalboard/config.json
|
||||||
#- "./data/postgres-config.json:/opt/focalboard/config.json" #postgres,需要修改对应数据库信息
|
- ./data/data:/opt/focalboard/data
|
||||||
- fbdata:/opt/focalboard/data
|
|
||||||
image: mattermost/focalboard:7.11.4
|
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
|
|
||||||
volumes:
|
|
||||||
fbdata:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
1panel-network:
|
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