add healthcheck endpoint

This commit is contained in:
Khanh Ngo 2021-11-21 10:30:49 +01:00
parent 578e9e61e5
commit 076c68732c
No known key found for this signature in database
GPG key ID: 920A7D645DCB23DF
3 changed files with 9 additions and 1 deletions

View file

@ -64,5 +64,5 @@ COPY --from=builder --chown=wgui:wgui /build/wg-ui /app
RUN chmod +x wg-ui
EXPOSE 5000/tcp
HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1:5000"]
HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1:5000/_health"]
ENTRYPOINT ["./wg-ui"]