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"]