Unstructured-IO / unstructured-api

Apache License 2.0
446 stars 101 forks source link

How to have a healthcheck in the docker image ? #380

Closed rocker1058 closed 4 months ago

rocker1058 commented 5 months ago

Describe the bug i got 404 not found in my ecs log

To Reproduce I have an ecs.. where I have an ec2. Within the ecs I already have my task and it is pointing to quay.io/unstructured-io/unstructured-api:4ffd8bc the image is downloaded correctly i test with docker ps... , but since I have a balancer in the ecs, to redirect to a target group that has the destinations ec2 of the docker image... the target needs a healthcheck... but since the image does not have it, I get 404 not found... what can I do to have a heathy in the docker image?

Environment: I am doing a curl to localhost:8000

yuming-long commented 5 months ago

Hey there! we do have health check endpoint, could you try http://localhost:8000/healthcheck with the quay image?

rocker1058 commented 4 months ago

healthcheck

thank u !!!, works