diff --git a/appstore/baota/10.0/.env b/appstore/baota/10.0/.env index 9bae1626e..8bb78a0bf 100644 --- a/appstore/baota/10.0/.env +++ b/appstore/baota/10.0/.env @@ -1,27 +1,9 @@ -# 数据持久化路径 [必填] -BAOTA_ROOT_PATH=/home/baota - # 网络模式 [必填] NETWORK_MODE=host +# 数据持久化路径 [必填] +BAOTA_ROOT_PATH=/home/baota + # WebUI 端口 [必填] PANEL_APP_PORT_HTTP=8888 -# 网站服务 HTTP [必填] -PANEL_APP_PORT_WEB_HTTP=80 - -# 网站服务 HTTPS [必填] -PANEL_APP_PORT_WEB_HTTPS=443 - -# SSH 端口 [必填] -PANEL_APP_PORT_SSH=22 - -# FTP 端口 [必填] -PANEL_APP_PORT_FTP=21 - -# MySQL 端口 [必填] -PANEL_APP_PORT_MYSQL=3306 - -# phpMyAdmin 端口 [必填] -PANEL_APP_PORT_PHPADMIN=888 - diff --git a/appstore/baota/10.0/data.yml b/appstore/baota/10.0/data.yml index 4d13b5b69..08bd5e9f3 100644 --- a/appstore/baota/10.0/data.yml +++ b/appstore/baota/10.0/data.yml @@ -1,12 +1,5 @@ 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 @@ -23,6 +16,13 @@ additionalProperties: value: "none" - label: 1panel-network value: "1panel-network" + - default: "/home/baota" + edit: true + envKey: BAOTA_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text - default: 8888 edit: true envKey: PANEL_APP_PORT_HTTP @@ -31,51 +31,3 @@ additionalProperties: required: true rule: paramPort type: number - - default: 80 - edit: true - envKey: PANEL_APP_PORT_WEB_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/appstore/baota/10.0/docker-compose.yml b/appstore/baota/10.0/docker-compose.yml index 474eb62fc..678152df3 100644 --- a/appstore/baota/10.0/docker-compose.yml +++ b/appstore/baota/10.0/docker-compose.yml @@ -7,18 +7,19 @@ services: env_file: - ./envs/global.env - .env + expose: + - 888 + - 22 + - 21 + - 3306 + - 80 + - 443 image: btpanel/baota:10.0_lts labels: createdBy: Apps network_mode: ${NETWORK_MODE} 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 restart: always volumes: - ${BAOTA_ROOT_PATH}/wwwroot:/www/wwwroot diff --git a/appstore/baota/9.0/.env b/appstore/baota/9.0/.env new file mode 100644 index 000000000..8bb78a0bf --- /dev/null +++ b/appstore/baota/9.0/.env @@ -0,0 +1,9 @@ +# 网络模式 [必填] +NETWORK_MODE=host + +# 数据持久化路径 [必填] +BAOTA_ROOT_PATH=/home/baota + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8888 + diff --git a/appstore/baota/9.0/data.yml b/appstore/baota/9.0/data.yml new file mode 100644 index 000000000..08bd5e9f3 --- /dev/null +++ b/appstore/baota/9.0/data.yml @@ -0,0 +1,33 @@ +additionalProperties: + formFields: + - 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: "/home/baota" + edit: true + envKey: BAOTA_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8888 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number diff --git a/appstore/baota/9.0/docker-compose.yml b/appstore/baota/9.0/docker-compose.yml new file mode 100644 index 000000000..c28254802 --- /dev/null +++ b/appstore/baota/9.0/docker-compose.yml @@ -0,0 +1,27 @@ +networks: + 1panel-network: + external: true +services: + baota: + container_name: baota + env_file: + - ./envs/global.env + - .env + expose: + - 888 + - 22 + - 21 + - 3306 + - 80 + - 443 + image: btpanel/baota:9.0_lts_latest + labels: + createdBy: Apps + network_mode: ${NETWORK_MODE} + ports: + - ${PANEL_APP_PORT_HTTP}:8888 + restart: always + 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/appstore/baota/9.0/envs/default.env b/appstore/baota/9.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/appstore/baota/9.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/baota/9.0/envs/global.env b/appstore/baota/9.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/appstore/baota/9.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/baota/9.0/scripts/init.sh b/appstore/baota/9.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/baota/9.0/scripts/init.sh @@ -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 diff --git a/appstore/baota/9.0/scripts/uninstall.sh b/appstore/baota/9.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/appstore/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/appstore/baota/9.0/scripts/upgrade.sh b/appstore/baota/9.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/baota/9.0/scripts/upgrade.sh @@ -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 diff --git a/dockge/baota/.env b/dockge/baota/.env index 9bae1626e..8bb78a0bf 100644 --- a/dockge/baota/.env +++ b/dockge/baota/.env @@ -1,27 +1,9 @@ -# 数据持久化路径 [必填] -BAOTA_ROOT_PATH=/home/baota - # 网络模式 [必填] NETWORK_MODE=host +# 数据持久化路径 [必填] +BAOTA_ROOT_PATH=/home/baota + # WebUI 端口 [必填] PANEL_APP_PORT_HTTP=8888 -# 网站服务 HTTP [必填] -PANEL_APP_PORT_WEB_HTTP=80 - -# 网站服务 HTTPS [必填] -PANEL_APP_PORT_WEB_HTTPS=443 - -# SSH 端口 [必填] -PANEL_APP_PORT_SSH=22 - -# FTP 端口 [必填] -PANEL_APP_PORT_FTP=21 - -# MySQL 端口 [必填] -PANEL_APP_PORT_MYSQL=3306 - -# phpMyAdmin 端口 [必填] -PANEL_APP_PORT_PHPADMIN=888 - diff --git a/dockge/baota/docker-compose.yml b/dockge/baota/docker-compose.yml index 474eb62fc..678152df3 100644 --- a/dockge/baota/docker-compose.yml +++ b/dockge/baota/docker-compose.yml @@ -7,18 +7,19 @@ services: env_file: - ./envs/global.env - .env + expose: + - 888 + - 22 + - 21 + - 3306 + - 80 + - 443 image: btpanel/baota:10.0_lts labels: createdBy: Apps network_mode: ${NETWORK_MODE} 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 restart: always volumes: - ${BAOTA_ROOT_PATH}/wwwroot:/www/wwwroot diff --git a/dockge/baota_9_0/.env b/dockge/baota_9_0/.env new file mode 100644 index 000000000..8bb78a0bf --- /dev/null +++ b/dockge/baota_9_0/.env @@ -0,0 +1,9 @@ +# 网络模式 [必填] +NETWORK_MODE=host + +# 数据持久化路径 [必填] +BAOTA_ROOT_PATH=/home/baota + +# WebUI 端口 [必填] +PANEL_APP_PORT_HTTP=8888 + diff --git a/dockge/baota_9_0/docker-compose.yml b/dockge/baota_9_0/docker-compose.yml new file mode 100644 index 000000000..c28254802 --- /dev/null +++ b/dockge/baota_9_0/docker-compose.yml @@ -0,0 +1,27 @@ +networks: + 1panel-network: + external: true +services: + baota: + container_name: baota + env_file: + - ./envs/global.env + - .env + expose: + - 888 + - 22 + - 21 + - 3306 + - 80 + - 443 + image: btpanel/baota:9.0_lts_latest + labels: + createdBy: Apps + network_mode: ${NETWORK_MODE} + ports: + - ${PANEL_APP_PORT_HTTP}:8888 + restart: always + 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/dockge/baota_9_0/envs/default.env b/dockge/baota_9_0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/dockge/baota_9_0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/baota_9_0/envs/global.env b/dockge/baota_9_0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/dockge/baota_9_0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai