docker-compose health check #482
Unanswered
adamcrow64
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm trying to add a docker-compose healthcheck to the imageproxy container.
I've tried a few tricks to no avail..
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/8080 && echo -e 'GET / HTTP/1.1\r\nHost: localhost\r\n\r\n' >&3 && grep -q OK <&3"]
interval: 30s
timeout: 5s
retries: 3
start_period: 4s
Beta Was this translation helpful? Give feedback.
All reactions