Use config port for docker healthcheck

This commit is contained in:
Michel Roca 2021-05-21 21:47:11 +02:00
parent dee465ab86
commit 517addc421
No known key found for this signature in database
GPG Key ID: BE192EC2B40ACD89

View File

@ -1,10 +1,11 @@
FROM alpine:latest
RUN apk --update add ca-certificates \
mailcap \
curl
curl \
jq
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
CMD curl -f http://localhost/health || exit 1
CMD curl -f http://localhost:$(jq '.port' /.filebrowser.json)/health || curl -f http://localhost/health || exit 1
VOLUME /srv
EXPOSE 80