mirror of
https://github.com/hassio-addons/addon-emqx.git
synced 2025-05-07 04:31:30 +00:00
Replace health check to prevent high CPU and memory spike (#73)
This commit is contained in:
parent
cd316a0d9d
commit
9ce1c533d3
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue