Probes multiple network interfaces to verify OmniRoute dashboard health endpoint accessibility in containers.
#!/usr/bin/env node // Source: https://github.com/MAHIAMIR45/Ominiai | License: MIT | Copyright 2026 diegosouzapw // Provided via justclaw.it.com; keep this notice with the code. /** * Docker healthcheck script for OmniRoute. * Probes the /api/monitoring/health endpoint on the dashboard port. * Used by Dockerfile and docker-compose files. * * #3151 — in some Docker network setups the server binds to a container IP and * a probe against `127.0.0.1` is not reachable, while `localhost`/`::1` (or vice * versa) is. The previous version probed ONLY `127.0.0.1` and swallowed every * error, so the container was reported `unhealthy` with an empty, undiagnosable * `State.Health[].Output`. We now try an ordered list of hosts and surface the * last error on total failure. * * Bridge Netwo ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key