This commit is contained in:
Your Name
2025-04-21 12:40:23 +12:00
parent 34e2bd238c
commit aa476ec88c
4 changed files with 49 additions and 3 deletions

View File

@ -0,0 +1,24 @@
#!/bin/bash
# Source common functions
source "$(dirname "$0")/_common.sh"
# Load environment variables
load_env "$1" || exit 1
# check if the service is running
if ! docker ps | grep -q "$CONTAINER_NAME"; then
echo "Service is not running"
exit 1
fi
echo "Service is running"
# curl -s -X GET http://localhost:8080/health | grep -q "OK"
if ! curl -s -X GET http://localhost:${HOST_PORT}/health | grep -q "OK"; then
echo "Service is not healthy"
exit 1
fi
echo "Service is healthy"
return 0