feat: 新增 mongo-express (#1293)

This commit is contained in:
wanghe 2024-04-23 17:40:16 +08:00 committed by GitHub
parent b89c484931
commit f2719bed00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 110 additions and 0 deletions

View File

@ -0,0 +1,51 @@
additionalProperties:
formFields:
- default: 8081
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: MONGO_HOST
key: mongodb
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: ""
edit: true
envKey: PANEL_DB_ROOT_USER
labelEn: Database UserName
labelZh: 数据库用户名
required: true
rule: paramCommon
type: text
- default: ""
edit: true
envKey: PANEL_DB_ROOT_PASSWORD
labelEn: Database Password
labelZh: 数据库密码
required: true
rule: paramCommon
type: password
- default: "mongo-express"
edit: true
envKey: BASICAUTH_USERNAME
labelEn: Management Username
labelZh: 管理平台用户名
required: true
rule: paramCommon
type: text
- default: "mongo-express"
edit: true
envKey: BASICAUTH_PASSWORD
labelEn: Management Password
labelZh: 管理平台密码
random: true
required: true
rule: paramCommon
type: text

View File

@ -0,0 +1,19 @@
services:
tailchat:
container_name: ${CONTAINER_NAME}
restart: unless-stopped
image: mongo-express:1.0.2-20
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8081
environment:
ME_CONFIG_BASICAUTH: true
ME_CONFIG_BASICAUTH_USERNAME: ${BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${BASICAUTH_PASSWORD}
ME_CONFIG_MONGODB_URL: mongodb://${PANEL_DB_ROOT_USER}:${PANEL_DB_ROOT_PASSWORD}@${MONGO_HOST}:27017
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -0,0 +1,21 @@
# mongo-express
**mongo-express** 是一款使用 Node.js、Express 和 Bootstrap 5 编写的基于 Web 的 MongoDB 管理界面。
## 主要功能:
- 连接到多个数据库
- 查看/添加/删除数据库
- 查看/添加/重命名/删除集合
- 查看/添加/更新/删除文档
- 在集合视图中内嵌预览音频/视频/图像资源
- 嵌套和/或大型对象可折叠,以便于概览
- 异步按需加载大文档属性(默认>100KB以保持集合视图快速
- GridFS 支持 - 添加/获取/删除非常大的文件
- 在文档中使用 BSON 数据类型
- 移动/响应式 - 当您遇到困难时Bootstrap 5 在小屏幕上的表现还算可以
- 连接并验证各个数据库
- 以管理员身份验证以查看所有数据库
- 数据库黑名单/白名单
- 自定义 CA/TLS/SSL 和 CA 验证禁用
- 支持副本集

19
apps/mongo-express/data.yml Executable file
View File

@ -0,0 +1,19 @@
name: mongo-express
tags:
- 开发工具
title: 基于 Web 的 MongoDB 管理界面
description: 基于 Web 的 MongoDB 管理界面
additionalProperties:
key: mongo-express
name: mongo-express
tags:
- DevTool
shortDescZh: 基于 Web 的 MongoDB 管理界面
shortDescEn: Web-based MongoDB admin interface
type: tool
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://github.com/mongo-express/mongo-express
github: https://github.com/mongo-express/mongo-express
document: https://github.com/mongo-express/mongo-express

BIN
apps/mongo-express/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB