1
0
Fork 0

feat(komari): add version 1.1.2 configuration

- add specific version
- add version 1.1.2
- remove unnecessary comments from data.yml
This commit is contained in:
pooneyy 2025-10-23 19:41:51 +08:00
parent 50657b29ab
commit 0e2ca1b8b0
No known key found for this signature in database
5 changed files with 50 additions and 30 deletions

View File

@ -0,0 +1,27 @@
additionalProperties:
formFields:
- default: 25774
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 应用端口
required: true
rule: paramPort
type: number
- default: admin
edit: true
envKey: ADMIN_USERNAME
labelEn: Admin Username
labelZh: 管理员用户名
required: true
rule: paramCommon
type: text
- default: changeme
edit: true
envKey: ADMIN_PASSWORD
labelEn: Admin Password
labelZh: 管理员密码
random: true
required: true
rule: paramComplexity
type: password

View File

@ -0,0 +1,20 @@
services:
komari:
image: ghcr.io/komari-monitor/komari:1.1.2
container_name: ${CONTAINER_NAME}
restart: always
ports:
- ${PANEL_APP_PORT_HTTP}:25774
volumes:
- ./data:/app/data
environment:
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -1,38 +1,21 @@
# 在应用商店列表顶部显示的应用名称
name: Komari
# 中文标签
tags:
- 工具
# 鼠标悬浮在应用上时显示的标题
title: 轻量级的服务器状态监控工具
# 应用详情页的完整描述
description: Komari 是一个轻量级的服务器状态监控工具,界面美观,易于部署。
# 应用的核心属性
additionalProperties:
# 应用的唯一英文ID用于创建文件夹等
key: komari
# 应用名称
name: Komari
# 英文标签
tags:
- Tool
# 中文短描述
shortDescZh: 一个轻量级的服务器状态监控工具。
# 英文短描述
shortDescEn: A lightweight server status monitoring tool.
# 应用类型, 'tool' | 'website' | 'runtime'
type: tool
# 是否允许跨版本升级
crossVersionUpdate: true
# 允许安装的数量限制, 0 代表无限制
limit: 0
# 官网地址
website: https://github.com/komari-monitor/komari
# Github 地址
github: https://github.com/komari-monitor/komari
# 文档地址
document: https://github.com/komari-monitor/komari
# 支持的 CPU 架构
architectures:
- amd64
- arm64

View File

@ -1,31 +1,23 @@
# additionalProperties 是固定写法
additionalProperties:
# formFields 定义了安装时需要填写的表单字段
formFields:
# 字段1: 端口配置
- default: 25774
edit: true
# 修正:使用驼峰命名的 envKey
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 应用端口
required: true
rule: paramPort
type: number
# 字段2: 用户名配置
- default: admin
edit: true
# 修正:使用驼峰命名的 envKey
envKey: ADMIN_USERNAME
labelEn: Admin Username
labelZh: 管理员用户名
required: true
rule: paramCommon
type: text
# 字段3: 密码配置
- default: changeme
edit: true
# 修正:使用驼峰命名的 envKey
envKey: ADMIN_PASSWORD
labelEn: Admin Password
labelZh: 管理员密码

View File

@ -1,17 +1,15 @@
version: "3"
services:
komari:
image: ghcr.io/komari-monitor/komari:latest
container_name: ${CONTAINER_NAME}
restart: always
ports:
- "${PANEL_APP_PORT_HTTP}:25774"
- ${PANEL_APP_PORT_HTTP}:25774
volumes:
- ./data:/app/data
# 使用更明确的 YAML 数组格式定义环境变量
environment:
- "ADMIN_USERNAME=${ADMIN_USERNAME}"
- "ADMIN_PASSWORD=${ADMIN_PASSWORD}"
- ADMIN_USERNAME=${ADMIN_USERNAME}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
networks:
- 1panel-network
labels: