docker-goaccess-cloudfront icon indicating copy to clipboard operation
docker-goaccess-cloudfront copied to clipboard

Docker health check integration

Open JakeWharton opened this issue 5 years ago • 2 comments

I think this requires a /_status endpoint or something to be served by nginx to indicate that it's up. Ideally this would be backed by something like a HEAD request to GoAccess to ensure it's up and working. We don't really care about just nginx.

JakeWharton avatar Jun 14 '20 03:06 JakeWharton

I like this. The goaccess redirect won't work since goaccess isn't a process in this case, it's run as a from job that processes and outputs a static HTML file. Since CloudFront logs aren't written in real-time there isn't much need in having goaccess continually running.

rharter avatar Jun 14 '20 04:06 rharter

I've never used this before. I just see it being used in other containers.

The full docs are here: https://docs.docker.com/engine/reference/builder/#healthcheck. I was very wrong about the mechanism by which it works.

JakeWharton avatar Jun 14 '20 04:06 JakeWharton