From 3153cf03832ddf2a216a504d9c6434c3ed5e6d81 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Tue, 11 Nov 2025 13:49:56 +0900 Subject: [PATCH] =?UTF-8?q?=ED=97=AC=EC=8A=A4=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73653080..ed23aa6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -121,9 +121,10 @@ USER nodejs # 포트 노출 EXPOSE 3000 8080 -# 헬스체크 -HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1 +# 헬스체크 (백엔드와 프론트엔드 둘 다 확인) +HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ + CMD wget --no-verbose --tries=1 --spider http://localhost:8080/api/health && \ + wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1 # 컨테이너 시작 CMD ["/app/start.sh"]