From 43e7b6fae90f4d208755f8897fb48eafef63bc96 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Fri, 8 Nov 2024 16:30:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=20=E5=AE=9D=E5=A1=94?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- apps/baota/9.0/data.yml | 81 ++++++++++++++++++++++++++++ apps/baota/9.0/docker-compose.yml | 28 ++++++++++ apps/baota/9.0/scripts/init.sh | 15 ++++++ apps/baota/9.0/scripts/uninstall.sh | 10 ++++ apps/baota/9.0/scripts/upgrade.sh | 15 ++++++ apps/baota/README.md | 30 +++++++++++ apps/baota/data.yml | 15 ++++++ apps/baota/logo.png | Bin 0 -> 8280 bytes 8 files changed, 194 insertions(+) create mode 100644 apps/baota/9.0/data.yml create mode 100644 apps/baota/9.0/docker-compose.yml create mode 100644 apps/baota/9.0/scripts/init.sh create mode 100644 apps/baota/9.0/scripts/uninstall.sh create mode 100644 apps/baota/9.0/scripts/upgrade.sh create mode 100644 apps/baota/README.md create mode 100644 apps/baota/data.yml create mode 100644 apps/baota/logo.png diff --git a/apps/baota/9.0/data.yml b/apps/baota/9.0/data.yml new file mode 100644 index 00000000..18d8f5a0 --- /dev/null +++ b/apps/baota/9.0/data.yml @@ -0,0 +1,81 @@ +additionalProperties: + formFields: + - default: "/home/baota" + edit: true + envKey: BAOTA_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: "host" + edit: true + envKey: NETWORK_MODE + labelEn: Drive path + labelZh: 网络模式 + required: true + type: select + values: + - label: 主机网络模式 + value: "host" + - label: 桥接网络模式 + value: "bridge" + - label: 无网络模式 + value: "none" + - label: 1panel-network + value: "1panel-network" + - default: 8888 + edit: true + envKey: PANEL_APP_PORT_WEB_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 80 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: 网站服务 HTTP + labelEn: Website service HTTP + required: true + rule: paramPort + type: number + - default: 443 + edit: true + envKey: PANEL_APP_PORT_WEB_HTTPS + labelZh: 网站服务 HTTPS + labelEn: Website service HTTPS + required: true + rule: paramPort + type: number + - default: 22 + edit: true + envKey: PANEL_APP_PORT_SSH + labelZh: SSH 端口 + labelEn: SSH port + required: true + rule: paramPort + type: number + - default: 21 + edit: true + envKey: PANEL_APP_PORT_FTP + labelZh: FTP 端口 + labelEn: FTP port + required: true + rule: paramPort + type: number + - default: 3306 + edit: true + envKey: PANEL_APP_PORT_MYSQL + labelZh: MySQL 端口 + labelEn: MySQL port + required: true + rule: paramPort + type: number + - default: 888 + edit: true + envKey: PANEL_APP_PORT_PHPADMIN + labelZh: phpMyAdmin 端口 + labelEn: phpMyAdmin port + required: true + rule: paramPort + type: number diff --git a/apps/baota/9.0/docker-compose.yml b/apps/baota/9.0/docker-compose.yml new file mode 100644 index 00000000..efc1390a --- /dev/null +++ b/apps/baota/9.0/docker-compose.yml @@ -0,0 +1,28 @@ +networks: + 1panel-network: + external: true + +services: + baota: + image: btpanel/baota:9.0_lts_latest + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8888 + - ${PANEL_APP_PORT_WEB_HTTP}:80 + - ${PANEL_APP_PORT_WEB_HTTPS}:443 + - ${PANEL_APP_PORT_FTP}:21 + - ${PANEL_APP_PORT_SSH}:22 + - ${PANEL_APP_PORT_MYSQL}:3306 + - ${PANEL_APP_PORT_PHPADMIN}:888 + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${BAOTA_ROOT_PATH}/wwwroot:/www/wwwroot + - ${BAOTA_ROOT_PATH}/data:/www/server/data + - ${BAOTA_ROOT_PATH}/vhost:/www/server/panel/vhost diff --git a/apps/baota/9.0/scripts/init.sh b/apps/baota/9.0/scripts/init.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/baota/9.0/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/baota/9.0/scripts/uninstall.sh b/apps/baota/9.0/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/baota/9.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/baota/9.0/scripts/upgrade.sh b/apps/baota/9.0/scripts/upgrade.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/baota/9.0/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/baota/README.md b/apps/baota/README.md new file mode 100644 index 00000000..185fe7e9 --- /dev/null +++ b/apps/baota/README.md @@ -0,0 +1,30 @@ +# 宝塔 + +宝塔,安全高效的服务器运维面板 + +![宝塔](https://file.lifebus.top/imgs/baota_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +宝塔面板是一款服务器管理软件,支持windows和linux系统,可以通过Web端轻松管理服务器,提升运维效率。例如:创建管理网站、FTP、数据库,拥有可视化文件管理器,可视化软件管理器,可视化CPU、内存、流量监控图表,计划任务等功能。 + +## 安装说明 + +> 默认地址 `http://127.0.0.1:8888/btpanel` +> +> 默认用户:`btpanel` +> +> 默认密码:`btpaneldocker` +> +> 默认SSH密码:`btpaneldocker` + +### 网络模式 + +当使用 主机模式 时,所有端口映射都无效,直接访问默认端口即可。 + + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/baota/data.yml b/apps/baota/data.yml new file mode 100644 index 00000000..3001aeaf --- /dev/null +++ b/apps/baota/data.yml @@ -0,0 +1,15 @@ +additionalProperties: + key: baota + name: 宝塔 + tags: + - WebSite + - Middleware + - Local + shortDescZh: 宝塔,安全高效的服务器运维面板 + shortDescEn: Baota, a secure and efficient server operation and maintenance panel + type: website + crossVersionUpdate: true + limit: 0 + website: https://www.bt.cn/ + github: https://www.bt.cn/ + document: https://www.bt.cn/ diff --git a/apps/baota/logo.png b/apps/baota/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..26421c5b9e2d936b9c14eb2616bdffba1d3c4ca6 GIT binary patch literal 8280 zcmV-eAgAAnP)5I_>3EV`1s?8+42u1znyvBn#tJ2S`!@OV)m zHBgjk+$MG`tM`y+$SaB*4mtPzK2I>9Ek_h}?#u7|&pr2?Q2@?#?ZNeX`Iis!&wBc$ zY5c6NzZ_QA*ER~j9_{6yPp9vHaZk&^i$u_gt91J5aGNt+jBAHSVxT@W}>Wpz{a_XU9i9aYr>et`o52WklhGu1%gz;nhb z91u8Asj4OnB$*ZlfdjRKf+cQ1;K0mA$G<-a9O#I5D*pa&Xkr8o5M?SH5IE3>z!_^| z1P%;b*?ZuenP`@{LEwPure}W+2pnjscWU}`#+n*|0|RyK!S(h0%X>WwHV`<_!m#-y z|E$+l;bb4by{Y9Hs*xsOpkWiMn!DkW)0J1(U(P>km;K{+^3R9U_rKV4BoH{z&uV6z ze|{MbhtQU)YL*O~nf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