#!/bin/bash # Healthcheck for Joplin Server if ! docker ps --filter "name=joplin-server" --filter "status=running" | grep -q "joplin-server"; then echo "[FAIL] joplin-server container is not running" exit 1 fi if ! curl -sf http://localhost:22300/api/ping > /dev/null; then echo "[FAIL] Joplin Server HTTP endpoint not responding" exit 1 fi echo "[OK] Joplin Server is healthy" exit 0