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 00000000..26421c5b Binary files /dev/null and b/apps/baota/logo.png differ