mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-21 19:03:26 +01:00
Use health endpoint
This commit is contained in:
parent
b3c975314d
commit
dab18e5b40
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ MAINTAINER Philipp C. Heckel <philipp.heckel@gmail.com>
|
|||
|
||||
COPY ntfy /usr/bin
|
||||
|
||||
HEALTHCHECK --interval=60s --timeout=10s CMD wget --no-verbose --tries=1 --spider http://localhost/config.js || exit 1
|
||||
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
|
||||
ENTRYPOINT ["ntfy"]
|
||||
|
|
Loading…
Reference in a new issue