Merge pull request #555 from bt90/patch-3

docker: add basic healthcheck
This commit is contained in:
Philipp C. Heckel 2022-12-31 09:42:35 -05:00 committed by GitHub
commit 4fa03f4938
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,5 +3,7 @@ MAINTAINER Philipp C. Heckel <philipp.heckel@gmail.com>
COPY ntfy /usr/bin COPY ntfy /usr/bin
HEALTHCHECK --interval=60s --timeout=10s CMD wget -q --tries=1 http://localhost/v1/health -O - | grep -Eo '"healthy"\s*:\s*true' || exit 1
EXPOSE 80/tcp EXPOSE 80/tcp
ENTRYPOINT ["ntfy"] ENTRYPOINT ["ntfy"]