From ffeea2ec5aa92f36ebb71bb476cf67f968218afd Mon Sep 17 00:00:00 2001 From: Jimin Kim Date: Fri, 30 Dec 2022 18:14:12 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20compose.yml=20Redis=20healthcheck=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compose.yml b/compose.yml index 534457a..8829408 100644 --- a/compose.yml +++ b/compose.yml @@ -7,8 +7,6 @@ services: volumes: - ./client/build:/usr/share/nginx/html:ro - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro - depends_on: - - backend db: image: mariadb @@ -32,7 +30,7 @@ services: image: redis restart: always healthcheck: - test: ["CMD-SHELL", "redis-cli -a $$(sed 's/requirepass //' /run/secrets/redis) ping | grep PONG"] + test: ["CMD-SHELL", "redis-cli -a $$(grep requirepass /run/secrets/redis | sed 's/requirepass //') ping | grep PONG"] interval: 3s retries: 5 ports: