1
0

feat:添加redisinsight到列表

This commit is contained in:
okxlin
2024-08-04 01:06:51 +08:00
parent d5fcd77919
commit 2090d74940
13 changed files with 306 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
CONTAINER_NAME="redisinsight"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP=40274
RI_APP_HOST="0.0.0.0"
RI_ENCRYPTION_KEY=""
RI_FILES_LOGGER="true"
RI_LOG_LEVEL="info"
RI_PROXY_PATH=""
RI_SERVER_TLS_CERT=""
RI_SERVER_TLS_KEY=""
RI_STDOUT_LOGGER="true"

View File

@@ -0,0 +1,98 @@
additionalProperties:
formFields:
- default: "40274"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data"
disabled: true
envKey: DATA_PATH
labelEn: Data Path
labelZh: 数据路径
required: true
type: text
- default: "0.0.0.0"
edit: true
envKey: RI_APP_HOST
labelEn: Application Host
labelZh: 应用主机
required: true
type: text
- default: ""
edit: true
envKey: RI_SERVER_TLS_KEY
labelEn: TLS Key Path
labelZh: TLS 密钥路径
required: false
type: text
- default: ""
edit: true
envKey: RI_SERVER_TLS_CERT
labelEn: TLS Cert Path
labelZh: TLS 证书路径
required: false
type: text
- default: ""
edit: true
envKey: RI_ENCRYPTION_KEY
labelEn: Encryption Key
labelZh: 加密密钥
required: false
type: password
- default: "info"
edit: true
envKey: RI_LOG_LEVEL
labelEn: Log Level
labelZh: 日志级别
required: true
type: select
values:
- label: error
value: error
- label: warn
value: warn
- label: info
value: info
- label: http
value: http
- label: verbose
value: verbose
- label: debug
value: debug
- label: silly
value: silly
- default: "true"
edit: true
envKey: RI_FILES_LOGGER
labelEn: Files Logger
labelZh: 文件日志
required: false
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: "true"
edit: true
envKey: RI_STDOUT_LOGGER
labelEn: Stdout Logger
labelZh: 标准输出日志
required: false
type: select
values:
- label: "True"
value: "true"
- label: "False"
value: "false"
- default: ""
edit: true
envKey: RI_PROXY_PATH
labelEn: Proxy Path
labelZh: 代理路径
required: false
type: text

View File

View File

@@ -0,0 +1,27 @@
services:
redisinsight:
image: "redis/redisinsight:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}"
volumes:
- ${DATA_PATH}:/data
environment:
- RI_APP_PORT=${PANEL_APP_PORT_HTTP}
- RI_APP_HOST=${RI_APP_HOST}
- RI_SERVER_TLS_KEY=${RI_SERVER_TLS_KEY}
- RI_SERVER_TLS_CERT=${RI_SERVER_TLS_CERT}
- RI_ENCRYPTION_KEY=${RI_ENCRYPTION_KEY}
- RI_LOG_LEVEL=${RI_LOG_LEVEL}
- RI_FILES_LOGGER=${RI_FILES_LOGGER}
- RI_STDOUT_LOGGER=${RI_STDOUT_LOGGER}
- RI_PROXY_PATH=${RI_PROXY_PATH}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@@ -0,0 +1,3 @@
#!/bin/bash
chown -R 1000:1000 data