mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-14 08:14:59 +00:00
Healthcheck fixes/optimizations
* Switch healthcheck interval/timeout from 30s/3s to 60s/10s. 30s interval is arguably overkill, and 3s timeout is definitely too short for lower end machines. * Use HEALTHCHECK CMD exec form to avoid superfluous `sh` invocations. * Add `--silent --show-error` flags to curl call to avoid progress meter being shown in healthcheck logs.
This commit is contained in:
parent
93346bc05d
commit
bbb0484d03
14 changed files with 40 additions and 39 deletions
|
@ -49,4 +49,5 @@ base_path="$(get_base_path "${DOMAIN}")"
|
|||
if [ -n "${ROCKET_TLS}" ]; then
|
||||
s='s'
|
||||
fi
|
||||
curl --insecure --fail "http${s}://localhost:${ROCKET_PORT}${base_path}/alive" || exit 1
|
||||
curl --insecure --fail --silent --show-error \
|
||||
"http${s}://localhost:${ROCKET_PORT}${base_path}/alive" || exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue