Skip to content

Commit

Permalink
feat: add Docker healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
dspashynskyi committed Sep 6, 2024
1 parent c41fe2a commit 99d81e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ USER nextjs
# Expose the port the app will run on
EXPOSE 3000 9464

HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=6 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1

# Start the application
CMD ["/app/startup.sh"]

0 comments on commit 99d81e1

Please sign in to comment.