Skip to content

Commit

Permalink
Support custom ports in Docker healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
eikendev authored and jmattheis committed May 29, 2020
1 parent 93b30c5 commit 894b1c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM frolvlad/alpine-glibc:glibc-2.31
ENV GOTIFY_SERVER_PORT="80"
WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata curl
ADD gotify-app /app/
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s CMD curl --fail http://localhost:80/health || exit 1
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s CMD curl --fail http://localhost:$GOTIFY_SERVER_PORT/health || exit 1
EXPOSE 80
ENTRYPOINT ["./gotify-app"]

0 comments on commit 894b1c5

Please sign in to comment.