Update finab/bark-server Docker tag to v2.2.5 (#715)
This commit is contained in:
20
apps/bark/2.2.5/.env.sample
Normal file
20
apps/bark/2.2.5/.env.sample
Normal file
@@ -0,0 +1,20 @@
|
||||
BARK_SERVER_ADDRESS="0.0.0.0"
|
||||
BARK_SERVER_BASIC_AUTH_PASSWORD=""
|
||||
BARK_SERVER_BASIC_AUTH_USER=""
|
||||
BARK_SERVER_CASE_SENSITIVE="false"
|
||||
BARK_SERVER_CERT=""
|
||||
BARK_SERVER_CONCURRENCY=262144
|
||||
BARK_SERVER_DATA_DIR="/data"
|
||||
BARK_SERVER_DSN=""
|
||||
BARK_SERVER_IDLE_TIMEOUT="10s"
|
||||
BARK_SERVER_KEY=""
|
||||
BARK_SERVER_PROXY_HEADER=""
|
||||
BARK_SERVER_READ_TIMEOUT="3s"
|
||||
BARK_SERVER_REDUCE_MEMORY_USAGE="false"
|
||||
BARK_SERVER_SERVERLESS="false"
|
||||
BARK_SERVER_STRICT_ROUTING="false"
|
||||
BARK_SERVER_URL_PREFIX="/"
|
||||
BARK_SERVER_WRITE_TIMEOUT="3s"
|
||||
CONTAINER_NAME="bark"
|
||||
DATA_PATH="./data"
|
||||
PANEL_APP_PORT_HTTP=40280
|
||||
156
apps/bark/2.2.5/data.yml
Normal file
156
apps/bark/2.2.5/data.yml
Normal file
@@ -0,0 +1,156 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "40280"
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "./data"
|
||||
disabled: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data Path
|
||||
labelZh: 数据路径
|
||||
required: true
|
||||
type: text
|
||||
- default: "0.0.0.0"
|
||||
disabled: true
|
||||
envKey: BARK_SERVER_ADDRESS
|
||||
labelEn: Bark Server Address
|
||||
labelZh: Bark 服务器地址
|
||||
required: true
|
||||
type: text
|
||||
- default: "/"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_URL_PREFIX
|
||||
labelEn: Bark Server URL Prefix
|
||||
labelZh: Bark 服务器 URL 前缀
|
||||
required: true
|
||||
type: text
|
||||
- default: "/data"
|
||||
disabled: true
|
||||
envKey: BARK_SERVER_DATA_DIR
|
||||
labelEn: Bark Server Data Directory
|
||||
labelZh: Bark 服务器数据目录
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_DSN
|
||||
labelEn: Bark Server DSN
|
||||
labelZh: Bark 服务器 DSN
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_SERVERLESS
|
||||
labelEn: Bark Server Serverless
|
||||
labelZh: Bark 服务器无服务器
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_CERT
|
||||
labelEn: Bark Server Certificate
|
||||
labelZh: Bark 服务器证书
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_KEY
|
||||
labelEn: Bark Server Key
|
||||
labelZh: Bark 服务器密钥
|
||||
required: false
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_CASE_SENSITIVE
|
||||
labelEn: Bark Server Case Sensitive
|
||||
labelZh: Bark 服务器区分大小写
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_STRICT_ROUTING
|
||||
labelEn: Bark Server Strict Routing
|
||||
labelZh: Bark 服务器严格路由
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_REDUCE_MEMORY_USAGE
|
||||
labelEn: Bark Server Reduce Memory Usage
|
||||
labelZh: Bark 服务器减少内存使用
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- label: "false"
|
||||
value: "false"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_BASIC_AUTH_USER
|
||||
labelEn: Bark Server Basic Auth User
|
||||
labelZh: Bark 服务器基本身份验证用户
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_BASIC_AUTH_PASSWORD
|
||||
labelEn: Bark Server Basic Auth Password
|
||||
labelZh: Bark 服务器基本身份验证密码
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: BARK_SERVER_PROXY_HEADER
|
||||
labelEn: Bark Server Proxy Header
|
||||
labelZh: Bark 服务器代理头
|
||||
required: false
|
||||
type: text
|
||||
- default: "262144"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_CONCURRENCY
|
||||
labelEn: Bark Server Concurrency
|
||||
labelZh: Bark 服务器并发
|
||||
required: true
|
||||
type: number
|
||||
- default: "3s"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_READ_TIMEOUT
|
||||
labelEn: Bark Server Read Timeout
|
||||
labelZh: Bark 服务器读取超时
|
||||
required: true
|
||||
type: text
|
||||
- default: "3s"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_WRITE_TIMEOUT
|
||||
labelEn: Bark Server Write Timeout
|
||||
labelZh: Bark 服务器写入超时
|
||||
required: true
|
||||
type: text
|
||||
- default: "10s"
|
||||
edit: true
|
||||
envKey: BARK_SERVER_IDLE_TIMEOUT
|
||||
labelEn: Bark Server Idle Timeout
|
||||
labelZh: Bark 服务器空闲超时
|
||||
required: true
|
||||
type: text
|
||||
35
apps/bark/2.2.5/docker-compose.yml
Normal file
35
apps/bark/2.2.5/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
bark:
|
||||
image: "finab/bark-server:v2.2.5"
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
|
||||
volumes:
|
||||
- ${DATA_PATH}:/data
|
||||
environment:
|
||||
- BARK_SERVER_ADDRESS=${BARK_SERVER_ADDRESS}:${PANEL_APP_PORT_HTTP}
|
||||
- BARK_SERVER_URL_PREFIX=${BARK_SERVER_URL_PREFIX}
|
||||
- BARK_SERVER_DATA_DIR=${BARK_SERVER_DATA_DIR}
|
||||
- BARK_SERVER_DSN=${BARK_SERVER_DSN}
|
||||
- BARK_SERVER_SERVERLESS=${BARK_SERVER_SERVERLESS}
|
||||
- BARK_SERVER_CERT=${BARK_SERVER_CERT}
|
||||
- BARK_SERVER_KEY=${BARK_SERVER_KEY}
|
||||
- BARK_SERVER_CASE_SENSITIVE=${BARK_SERVER_CASE_SENSITIVE}
|
||||
- BARK_SERVER_STRICT_ROUTING=${BARK_SERVER_STRICT_ROUTING}
|
||||
- BARK_SERVER_REDUCE_MEMORY_USAGE=${BARK_SERVER_REDUCE_MEMORY_USAGE}
|
||||
- BARK_SERVER_BASIC_AUTH_USER=${BARK_SERVER_BASIC_AUTH_USER}
|
||||
- BARK_SERVER_BASIC_AUTH_PASSWORD=${BARK_SERVER_BASIC_AUTH_PASSWORD}
|
||||
- BARK_SERVER_PROXY_HEADER=${BARK_SERVER_PROXY_HEADER}
|
||||
- BARK_SERVER_CONCURRENCY=${BARK_SERVER_CONCURRENCY}
|
||||
- BARK_SERVER_READ_TIMEOUT=${BARK_SERVER_READ_TIMEOUT}
|
||||
- BARK_SERVER_WRITE_TIMEOUT=${BARK_SERVER_WRITE_TIMEOUT}
|
||||
- BARK_SERVER_IDLE_TIMEOUT=${BARK_SERVER_IDLE_TIMEOUT}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
2
apps/bark/2.2.5/envs/default.env
Normal file
2
apps/bark/2.2.5/envs/default.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
2
apps/bark/2.2.5/envs/global.env
Normal file
2
apps/bark/2.2.5/envs/global.env
Normal file
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
17
apps/bark/2.2.5/scripts/init.sh
Normal file
17
apps/bark/2.2.5/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
10
apps/bark/2.2.5/scripts/uninstall.sh
Normal file
10
apps/bark/2.2.5/scripts/uninstall.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
17
apps/bark/2.2.5/scripts/upgrade.sh
Normal file
17
apps/bark/2.2.5/scripts/upgrade.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user