헬스체크 설정 추가
This commit is contained in:
parent
198f9a6f2b
commit
3153cf0383
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue