Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented Healthcheck based on existing health endpoint in Dockerfi… #265

Merged
merged 1 commit into from
Sep 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dist
.zip
maildev-*
settings.json
*.sublime-*
.nodemonignore

# Ignore npm debug log
Expand Down
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ MAINTAINER "Dan Farrelly <daniel.j.farrelly@gmail.com>"

ENV NODE_ENV production

RUN apk add --no-cache curl

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

Expand All @@ -19,3 +21,6 @@ EXPOSE 80 25

ENTRYPOINT ["bin/maildev"]
CMD ["--web", "80", "--smtp", "25"]

HEALTHCHECK --interval=10s --timeout=1s \
CMD curl -k -f -v http://localhost/healthz || exit 1