mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-29 15:44:13 +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_PUBNUB_SUBSCRIBE_KEY=$DEFAULT_PUBNUB_SUBSCRIBE_KEY \
|
||||||
DEFAULT_MIXPANEL_TOKEN=$DEFAULT_MIXPANEL_TOKEN
|
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" ]
|
CMD [ "/sbin/init" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user