diff --git a/Dockerfile b/Dockerfile index 79cba4f8..adc21c46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,6 +85,9 @@ RUN echo "Cloning nginx and building $NGINX_VERSION (rev $NGINX_COMMIT from '$NG FROM nginx:${NGINX_VERSION} +HEALTHCHECK --interval=30s --timeout=3s --start-period=60s \ + CMD (curl -f http://localhost/ipfs/QmXjYBY478Cno4jzdCcPy4NcJYFrwHZ51xaCP8vUwN9MGm/) || exit 1 + ARG NGINX_NAME COPY --from=build /usr/sbin/nginx /usr/sbin/