mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Update app version [skip ci]
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
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: "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
|
||||
@@ -0,0 +1,34 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
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
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user