16 lines
404 B
Bash
16 lines
404 B
Bash
#!/bin/bash
|
|
# Healthcheck for Outline Wiki stack
|
|
|
|
if ! docker ps --filter "name=outline-outline-1" --filter "status=running" | grep -q "outline-outline-1"; then
|
|
echo "[FAIL] outline container is not running"
|
|
exit 1
|
|
fi
|
|
|
|
if ! curl -sf http://localhost:3000/_health > /dev/null; then
|
|
echo "[FAIL] Outline HTTP health endpoint not responding"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[OK] Outline is healthy"
|
|
exit 0
|