Skip to content
Discussion options

You must be logged in to vote

Two separate things.

The test is in exec form, so there's no shell to interpret ||. Docker hands wget one argument — http://localhost:9091/api/state || exit 1, spaces and all — and wget takes the whole string as the URL, so it fails every time. --quiet is why the log looks empty: you've told wget not to print anything, so there's nothing for docker to capture.

The bigger thing is that you don't need the stanza. The image already declares a healthcheck:

HEALTHCHECK --interval=30s --timeout=3s --start-period=1m CMD /app/healthcheck.sh

and Authelia rewrites /app/.healthcheck.env during startup with the scheme, host, port and path read back off your own server config (writeHealthCheckEnvConfig

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ausfestivus
Comment options

Answer selected by ausfestivus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants