From 67b36d1f578646cec805a9884c957c998c8741f8 Mon Sep 17 00:00:00 2001 From: rockpell Date: Sat, 26 Feb 2022 15:55:47 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20docker=20compose=20db=20=ED=97=AC?= =?UTF-8?q?=EC=8A=A4=EC=B2=B4=ED=81=AC=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 환경 변수를 지정을 제대로 안해줘서 healthcheck가 제대로 안되고 있던 문제 수정 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 50bff69d..645809ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: - TZ=Asia/Seoul command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci healthcheck: - test: 'mysqladmin ping -h localhost -u $$DB_USER_NAME --password=$$DB_USER_PASSWORD' + test: 'mysqladmin ping -h localhost -u ${DB_USER_NAME} --password=${DB_USER_PASSWORD}' interval: 5s timeout: 1s retries: 10