codex-proxy / docker-healthcheck.sh
icebear
fix: Docker HEALTHCHECK reads port from config (#118) (#119)
02fe9b3 unverified
raw
history blame
227 Bytes
#!/bin/sh
# Read server port from config, fallback to 8080
PORT=$(grep -A5 '^server:' /app/config/default.yaml 2>/dev/null | grep 'port:' | head -1 | awk '{print $2}')
curl -fs "http://localhost:${PORT:-8080}/health" || exit 1