first commit
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
COMPOSE_FILE="$ROOT_DIR/docker/docker-compose.yml"
|
||||
|
||||
if ! command -v docker >/dev/null 2>&1; then
|
||||
echo "docker command not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! docker info >/dev/null 2>&1; then
|
||||
echo "docker daemon is not running or is not accessible"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
docker compose -f "$COMPOSE_FILE" ps
|
||||
echo
|
||||
curl -fsS http://localhost:4000/api/health || {
|
||||
echo "API health check failed"
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user