From 52a7427855066fee3a2540a3bc1fb7fb677be3c5 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Fri, 24 Mar 2023 15:49:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20redis-commander=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=80=89=E6=8B=A9=20(#8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps.json | 3 - .../versions/0.8.1/config.json | 73 +++++++++++++++++++ .../versions/0.8.1/docker-compose.yml | 2 +- 3 files changed, 74 insertions(+), 4 deletions(-) delete mode 100644 apps.json diff --git a/apps.json b/apps.json deleted file mode 100644 index 986a83ba..00000000 --- a/apps.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "version": "v0.0.39" -} diff --git a/apps/redis-commander/versions/0.8.1/config.json b/apps/redis-commander/versions/0.8.1/config.json index fe62fc91..5bf0b13d 100644 --- a/apps/redis-commander/versions/0.8.1/config.json +++ b/apps/redis-commander/versions/0.8.1/config.json @@ -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": "登录用户名", diff --git a/apps/redis-commander/versions/0.8.1/docker-compose.yml b/apps/redis-commander/versions/0.8.1/docker-compose.yml index 25e1d2bc..1031d88d 100644 --- a/apps/redis-commander/versions/0.8.1/docker-compose.yml +++ b/apps/redis-commander/versions/0.8.1/docker-compose.yml @@ -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