Add proper health check

This commit is contained in:
Ben Sarmiento
2023-11-22 08:59:08 +01:00
parent 074b2b78e5
commit eee83dacf7
2 changed files with 10 additions and 6 deletions

7
healthcheck.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
response=$(curl -o /dev/null -s -w "%{http_code}" http://localhost:9999)
if [ "$response" -eq 200 ]; then
exit 0
else
exit 1
fi