mirror of
https://gh.con.sh/https://github.com/plexinc/pms-docker
synced 2024-09-20 06:45:31 +00:00
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:
parent
c851a00c2b
commit
13e780cda5
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user