feat: 优化 Focalboard 安装包

This commit is contained in:
wanghe-fit2cloud 2024-05-16 10:36:42 +08:00
parent 4534b41f36
commit 886aea837e
5 changed files with 33 additions and 35 deletions

View File

@ -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

View File

@ -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"
}

View File

@ -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

View File

@ -0,0 +1,3 @@
#!/bin/bash
chown -R 65534:65534 ./data/data

View 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