From 2f996450e5d9a1b893be809ecd94132d77cc7e08 Mon Sep 17 00:00:00 2001 From: ahkui <14049597+ahkui@users.noreply.github.com> Date: Fri, 6 Jul 2018 20:57:29 +0800 Subject: [PATCH] Add Redis webui (#1688) * add redis webui * Update env-example * depends on redis --- docker-compose.yml | 15 +++++++++++++++ env-example | 7 +++++++ 2 files changed, 22 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 53a23963..2e6a7ea5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -743,6 +743,21 @@ services: networks: - backend +### PHPRedisAdmin ################################################ + phpredisadmin: + image: erikdubbelboer/phpredisadmin:latest + environment: + - ADMIN_USER=${REDIS_WEBUI_USERNAME} + - ADMIN_PASS=${REDIS_WEBUI_PASSWORD} + - REDIS_1_HOST=${REDIS_WEBUI_CONNECT_HOST} + - REDIS_1_PORT=${REDIS_WEBUI_CONNECT_PORT} + networks: + - backend + ports: + - "${REDIS_WEBUI_PORT}:80" + depends_on: + - redis + ### MongoWebUI ################################################ mongo-webui: build: diff --git a/env-example b/env-example index eec02c3e..25ebcb7e 100644 --- a/env-example +++ b/env-example @@ -363,6 +363,13 @@ SOLR_DATAIMPORTHANDLER_MYSQL=false ### NETDATA ############################################### NETDATA_PORT=19999 +### PHPREDISADMIN ######################################### +REDIS_WEBUI_USERNAME=laradock +REDIS_WEBUI_PASSWORD=laradock +REDIS_WEBUI_CONNECT_HOST=redis +REDIS_WEBUI_CONNECT_PORT=6379 +REDIS_WEBUI_PORT=9987 + ### MONGOWEBUI ############################################### MONGO_WEBUI_PORT=3000 MONGO_WEBUI_ROOT_URL=http://localhost