Skip to content

Commit

Permalink
feat: add health-check routes
Browse files Browse the repository at this point in the history
  • Loading branch information
wajeht committed Sep 23, 2023
1 parent fe89623 commit ec5a607
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ COPY ./ .

EXPOSE 8087

HEALTHCHECK CMD curl -f http://localhost:8087/health-check || exit 1
HEALTHCHECK CMD curl -f http://localhost:8087/health || exit 1

CMD ["npm", "run", "dev:hmr"]
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ RUN npm run build:ui

EXPOSE 8087

HEALTHCHECK --interval=240s --timeout=120s --retries=5 CMD curl -s http://localhost:8087 || exit 1
HEALTHCHECK CMD curl -f http://localhost:8087/health || exit 1

CMD ["npm", "run", "start"]

0 comments on commit ec5a607

Please sign in to comment.