modsecurity-docker
modsecurity-docker copied to clipboard
feat(health): add health check
Signed-off-by: Felipe Zipitria [email protected]
Adds health check to the /healtz endpoint configured in all containers.
Fixes #136.
Note: I did try adding variables to the different times, but docker doesn't like it. :( My idea was to add 4 new variables HEALTHCHECK_, but looks like we can't.
❯ docker-compose build apache-waf
[+] Building 0.1s (2/2) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 9.17kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: dockerfile parse error line 190: time: invalid duration "${HEALTHCHECK_INTERVAL}"