Add --max-time 100 to healthcheck (#66)

If Plex is running but is unable to send a response, curl will wait indefinitley until it does.  

Adding `--max-time 100` sets an upper limit for how long curl will wait for a response.
This matches Dockerfile's HEALTHCHECK time to mark a container as unhealthy (--interval=5s --timeout=2s --retries=20)
This commit is contained in:
putty182 2021-02-16 00:30:15 +10:00 committed by GitHub
parent c851a00c2b
commit 13e780cda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/sh -e #!/bin/sh -e
TARGET=localhost TARGET=localhost
CURL_OPTS="--connect-timeout 15 --silent --show-error --fail" CURL_OPTS="--connect-timeout 15 --max-time 100 --silent --show-error --fail"
curl ${CURL_OPTS} "http://${TARGET}:32400/identity" >/dev/null curl ${CURL_OPTS} "http://${TARGET}:32400/identity" >/dev/null