feat: redis-commander 增加数据库选择 (#8)

This commit is contained in:
zhengkunwang223 2023-03-24 15:49:46 +08:00 committed by GitHub
parent dc7cf91b60
commit 52a7427855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 4 deletions

View File

@ -1,3 +0,0 @@
{
"version": "v0.0.39"
}

View File

@ -17,6 +17,79 @@
"default": "",
"envKey": "PANEL_DB_ROOT_PASSWORD"
},
{
"type": "select",
"labelZh": "数据库",
"labelEn": "Database",
"required": true,
"default": "0",
"values": [
{
"label": "db0",
"value": "0"
},
{
"label": "db1",
"value": "1"
},
{
"label": "db2",
"value": "2"
},
{
"label": "db3",
"value": "3"
},
{
"label": "db4",
"value": "4"
},
{
"label": "db5",
"value": "5"
},
{
"label": "db6",
"value": "6"
},
{
"label": "db7",
"value": "7"
},
{
"label": "db8",
"value": "8"
}, {
"label": "db9",
"value": "9"
},
{
"label": "db10",
"value": "10"
},
{
"label": "db11",
"value": "11"
},
{
"label": "db12",
"value": "12"
},
{
"label": "db13",
"value": "13"
}, {
"label": "db14",
"value": "14"
},
{
"label": "db15",
"value": "15"
}
],
"envKey": "REDIS_DB",
"edit": true
},
{
"type": "text",
"labelZh": "登录用户名",

View File

@ -5,7 +5,7 @@ services:
redis-commander-XnlR:
container_name: ${CONTAINER_NAME}
environment:
- REDIS_HOSTS=1panel:${PANEL_DB_HOST}:6379:0:${PANEL_DB_ROOT_PASSWORD}
- REDIS_HOSTS=1panel:${PANEL_DB_HOST}:6379:${REDIS_DB}:${PANEL_DB_ROOT_PASSWORD}
- HTTP_USER=${COMMANDER_ADMIN}
- HTTP_PASSWORD=${COMMANDER_PASSWORD}
hostname: redis-commander