From 451f4d499312ccea8bd44abdd0fc61cd6f3f2b95 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Thu, 22 Aug 2024 13:49:49 +0530 Subject: [PATCH] fix: redis related issue --- docker-compose/setup-script/noco.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose/setup-script/noco.sh b/docker-compose/setup-script/noco.sh index 0879e8bffa..97a177be6d 100755 --- a/docker-compose/setup-script/noco.sh +++ b/docker-compose/setup-script/noco.sh @@ -577,14 +577,14 @@ EOF image: redis:latest restart: unless-stopped env_file: docker.env - command: redis-server --requirepass \${REDIS_PASSWORD} - volumes: - - redis:/data + command: + - /bin/sh + - -c + - redis-server --requirepass "\$\${REDIS_PASSWORD}" healthcheck: - test: ["CMD", "redis-cli", "ping"] - interval: 10s - timeout: 5s - retries: 5 + test: [ "CMD", "redis-cli", "-a", "\$\${REDIS_PASSWORD}", "--raw", "incr", "ping" ] + volumes: + - ./redis:/data networks: - nocodb-network EOF