Pulse/docker-healthcheck.sh
2026-03-18 16:06:30 +00:00

10 lines
442 B
Bash

#!/bin/sh
# Docker health check script for Pulse
# Automatically uses HTTPS when HTTPS_ENABLED=true
if [ "$HTTPS_ENABLED" = "true" ] || [ "$HTTPS_ENABLED" = "1" ]; then
# Use HTTPS with --no-check-certificate to handle self-signed certs
wget --no-verbose --tries=1 --spider --no-check-certificate https://localhost:7655/api/health || exit 1
else
wget --no-verbose --tries=1 --spider http://localhost:7655/api/health || exit 1
fi