From 96cd1d3fc5009e2d7a51b106d5084356c5b7364d Mon Sep 17 00:00:00 2001 From: James Carlo Luchavez Date: Mon, 3 Jun 2024 03:59:26 +0800 Subject: [PATCH] Moved Data Path and Added GUI - Removed "REDIS_DATA_PATH" from ".env" since it fails on MacOS. Instead, used "DATA_PATH_HOST" to store Redis data. - Added Redis Commander to provide GUI for users. --- .env | 3 +-- .gitignore | 1 + docker-compose.yml | 13 +++++++++++-- settings.yml | 8 +++++--- 4 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.env b/.env index 5b323d4..3e1d1ce 100644 --- a/.env +++ b/.env @@ -1,2 +1 @@ -REDIS_DATA_PATH=/tmp -REDIS_PORT=6339 +REDIS_PORT=6379 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/docker-compose.yml b/docker-compose.yml index 0465747..8912a40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,18 @@ -version: '3' services: redis: image: ghcr.io/deck-app/redis:v6.2 volumes: - - '${REDIS_DATA_PATH}:/data' + - '${DATA_PATH_HOST}/data:/data' ports: - '${REDIS_PORT}:6379' + + redis-commander: + image: rediscommander/redis-commander:latest + environment: + - 'REDIS_HOSTS=local:redis:6379' + ports: + - '${REDIS_COMMANDER_PORT}:8081' + depends_on: + - redis + volumes: {} diff --git a/settings.yml b/settings.yml index 423e0be..0bbdc52 100644 --- a/settings.yml +++ b/settings.yml @@ -24,7 +24,7 @@ # - "8.0" # target: # PHP_VERSION - + # backend_ws: # label: # Laravel Version @@ -43,7 +43,7 @@ # Enable PHP error reporting? # type: # checkbox - # hint: Check the box to display PHP errors + # hint: Check the box to display PHP errors # target: # DISPLAY_PHPERROR # php_xdebug: @@ -62,7 +62,7 @@ # hint: Incase you have a Laravel project already installed at the selected path # target: # LARAVEL_INSTALL - + # mysql_version: # label: # MySQL version @@ -100,3 +100,5 @@ system: ports: http: REDIS_PORT + others: + - REDIS_COMMANDER_PORT