发布应用 LLTwoBot

This commit is contained in:
ms
2025-12-11 13:14:31 +08:00
parent 7cfeb0d718
commit 505695cf4a
12 changed files with 157 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
additionalProperties:
formFields:
- default: "/home/llonebot"
edit: true
envKey: LLONEBOT_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 3080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: QUICK_LOGIN_QQ
labelZh: 快速登录QQ号码
labelEn: Quick login QQ number
required: true
type: text
- default: 3000
edit: true
envKey: PANEL_APP_PORT_ONEBOT_HTTP
labelZh: OneBot HTTP 端口
labelEn: OneBot HTTP port
required: true
rule: paramPort
type: number
- default: 3001
edit: true
envKey: PANEL_APP_PORT_ONEBOT_WS
labelZh: OneBot WebSocket 端口
labelEn: OneBot WebSocket port
required: true
rule: paramPort
type: number
- default: 5600
edit: true
envKey: PANEL_APP_PORT_SATORI
labelZh: Satori 端口
labelEn: Satori port
required: true
rule: paramPort
type: number
+26
View File
@@ -0,0 +1,26 @@
networks:
1panel-network:
external: true
services:
llonebot:
image: initialencounter/llonebot:latest
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3080
- ${PANEL_APP_PORT_ONEBOT_HTTP}:3000
- ${PANEL_APP_PORT_ONEBOT_WS}:3001
- ${PANEL_APP_PORT_SATORI}:5600
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${LLONEBOT_ROOT_PATH}/data:/root/.config/QQ
- ${LLONEBOT_ROOT_PATH}/llonebot:/root/llonebot
environment:
- TZ=Asia/Shanghai
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View 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
View 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
View 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