Replace health check to prevent high CPU and memory spike (#73)

This commit is contained in:
Remco van Essen 2023-10-23 22:44:19 +02:00 committed by GitHub
parent cd316a0d9d
commit 9ce1c533d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,12 +28,9 @@ RUN \
COPY rootfs /
WORKDIR /opt/emqx
HEALTHCHECK \
--interval=5s \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD /opt/emqx/bin/emqx_ctl status || exit 1
#healthcheck
HEALTHCHECK CMD curl --fail http://127.0.0.1:18083 || exit 1
# Build arguments
ARG BUILD_ARCH