From 4a7a17bd7921ad0951fd25e2af7d7697bfd0edd6 Mon Sep 17 00:00:00 2001 From: qyg2297248353 Date: Sat, 12 Jul 2025 02:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=20Minio=202025-04-22=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/renovate.json | 3 +- apps/minio/2025-04-22/data.yml | 103 +++++++++++++++++++++ apps/minio/2025-04-22/docker-compose.yml | 34 +++++++ apps/minio/2025-04-22/envs/default.env | 2 + apps/minio/2025-04-22/envs/global.env | 2 + apps/minio/2025-04-22/scripts/init.sh | 17 ++++ apps/minio/2025-04-22/scripts/uninstall.sh | 10 ++ apps/minio/2025-04-22/scripts/upgrade.sh | 17 ++++ apps/minio/README.md | 10 ++ apps/minio/data.yml | 2 +- 10 files changed, 198 insertions(+), 2 deletions(-) create mode 100644 apps/minio/2025-04-22/data.yml create mode 100644 apps/minio/2025-04-22/docker-compose.yml create mode 100644 apps/minio/2025-04-22/envs/default.env create mode 100644 apps/minio/2025-04-22/envs/global.env create mode 100644 apps/minio/2025-04-22/scripts/init.sh create mode 100644 apps/minio/2025-04-22/scripts/uninstall.sh create mode 100644 apps/minio/2025-04-22/scripts/upgrade.sh diff --git a/.github/renovate.json b/.github/renovate.json index efd094556..c87130d69 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -27,7 +27,8 @@ "**/alist/**", "**/alist-aria2/**", "**/alist-ffmpeg/**", - "**/homarr/0.15.10/**" + "**/homarr/0.15.10/**", + "**/minio/2025-04-22/**" ], "packageRules": [ { diff --git a/apps/minio/2025-04-22/data.yml b/apps/minio/2025-04-22/data.yml new file mode 100644 index 000000000..5f4f7a5a5 --- /dev/null +++ b/apps/minio/2025-04-22/data.yml @@ -0,0 +1,103 @@ +additionalProperties: + formFields: + - default: "/home/minio" + edit: true + envKey: MINIO_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 9001 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 9000 + edit: true + envKey: PANEL_APP_PORT_API + labelZh: API 端口 (映射内部端口) + labelEn: API Port (mapped internal port) + required: true + rule: paramPort + type: number + - default: 9000 + edit: true + envKey: MINIO_API_PORT + labelZh: API 内部端口 + labelEn: Internal API Port + required: true + rule: paramPort + type: number + - default: "minio" + edit: true + envKey: MINIO_ROOT_USER + labelZh: 管理员 用户名 + labelEn: Root User + required: true + type: text + - default: "" + edit: true + envKey: MINIO_ROOT_PASSWORD + labelZh: 管理员 密码 + labelEn: Root Password + random: true + required: true + rule: paramComplexity + type: password + - default: "on" + edit: true + envKey: MINIO_BROWSER + labelEn: Enable WebUI + labelZh: 启用 WebUI + required: true + type: select + values: + - label: 开启 + value: "on" + - label: 关闭 + value: "off" + - default: "on" + edit: true + envKey: MINIO_BROWSER_LOGIN_ANIMATION + labelEn: WebUI login animation + labelZh: WebUI 登录动画 + required: true + type: select + values: + - label: 开启 + value: "on" + - label: 关闭 + value: "off" + - default: "12h" + edit: true + envKey: MINIO_BROWSER_SESSION_DURATION + labelEn: Session duration + labelZh: 会话持续时间 (s/秒 m/分钟 h/小时 d/天) + required: true + type: text + - default: "http://127.0.0.1:9000" + edit: true + envKey: MINIO_SERVER_URL + labelZh: API 服务器 URL + labelEn: API Server URL + rule: paramExtUrl + required: true + type: text + - default: "localhost" + edit: true + envKey: MINIO_SERVER_HOST + labelZh: API 域名 + labelEn: API Hostname + required: true + type: text + - default: "http://127.0.0.1:9001" + edit: true + envKey: MINIO_BROWSER_REDIRECT_URL + labelZh: WebUI 重定向 URL + labelEn: WebUI Redirect URL + rule: paramExtUrl + required: true + type: text diff --git a/apps/minio/2025-04-22/docker-compose.yml b/apps/minio/2025-04-22/docker-compose.yml new file mode 100644 index 000000000..3500e851c --- /dev/null +++ b/apps/minio/2025-04-22/docker-compose.yml @@ -0,0 +1,34 @@ +networks: + 1panel-network: + external: true + +services: + minio: + image: qyg2297248353/minio:RELEASE.2025-04-22T22-12-26Z + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} + - ${PANEL_APP_PORT_API}:${MINIO_API_PORT} + command: server --console-address :${PANEL_APP_PORT_HTTP} --address :${MINIO_API_PORT} --json + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + extra_hosts: + - ${MINIO_SERVER_HOST:-localhost}:127.0.0.1 + volumes: + - ${MINIO_ROOT_PATH}/certs:/root/.minio/certs + - ${MINIO_ROOT_PATH}/data:/data + logging: + options: + max-size: "5M" + max-file: "10" + driver: json-file + environment: + - MINIO_VOLUMES=/data + - MINIO_API_ROOT_ACCESS=on + - MINIO_BROWSER_REDIRECT=true diff --git a/apps/minio/2025-04-22/envs/default.env b/apps/minio/2025-04-22/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/minio/2025-04-22/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/minio/2025-04-22/envs/global.env b/apps/minio/2025-04-22/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/minio/2025-04-22/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/minio/2025-04-22/scripts/init.sh b/apps/minio/2025-04-22/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/minio/2025-04-22/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/apps/minio/2025-04-22/scripts/uninstall.sh b/apps/minio/2025-04-22/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/minio/2025-04-22/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/minio/2025-04-22/scripts/upgrade.sh b/apps/minio/2025-04-22/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/minio/2025-04-22/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/apps/minio/README.md b/apps/minio/README.md index 83901781f..c852c832c 100644 --- a/apps/minio/README.md +++ b/apps/minio/README.md @@ -6,6 +6,16 @@ MinIO 是一种高性能、S3 兼容的对象存储。它是为大规模 AI/ML ![](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) +
+
+ ⚠️ +
+ 温馨提示
+ 该软件由于违背开源协议,自2025-04-22后,不在提供管理界面服务,请谨慎使用。 +
+
+
+ ## 特性 + 简单 diff --git a/apps/minio/data.yml b/apps/minio/data.yml index eda20e27d..782b51d75 100644 --- a/apps/minio/data.yml +++ b/apps/minio/data.yml @@ -10,7 +10,7 @@ shortDescZh: 开源的对象存储服务器 shortDescEn: Open source object storage server type: website - crossVersionUpdate: true + crossVersionUpdate: false limit: 0 website: https://min.io/ github: https://github.com/minio/minio/