mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 02:40:03 +00:00
Add interval and options for the healthcheck
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
95bbe6ea49
commit
a118609256
@ -209,6 +209,7 @@ ENV CONFIG_MOUNT_POINT=/boot/config.json \
|
||||
DEFAULT_PUBNUB_SUBSCRIBE_KEY=$DEFAULT_PUBNUB_SUBSCRIBE_KEY \
|
||||
DEFAULT_MIXPANEL_TOKEN=$DEFAULT_MIXPANEL_TOKEN
|
||||
|
||||
HEALTHCHECK CMD wget -qO- http://127.0.0.1:${LISTEN_PORT:-48484}/v1/healthy || exit 1
|
||||
HEALTHCHECK --interval=5m --start-period=1m --timeout=30s --retries=3 \
|
||||
CMD wget -qO- http://127.0.0.1:${LISTEN_PORT:-48484}/v1/healthy || exit 1
|
||||
|
||||
CMD [ "/sbin/init" ]
|
||||
|
Loading…
Reference in New Issue
Block a user