improve docker healthchecks to verify port binding and iptables chains

not just process existence
This commit is contained in:
2026-02-10 20:12:21 -03:00
parent 49ef3f6640
commit a44af22739
4 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ services:
external:
ipv4_address: 10.200.0.1
healthcheck:
test: ["CMD", "pgrep", "miniupnpd"]
test: ["CMD-SHELL", "pgrep miniupnpd > /dev/null && ss -ulnp | grep -q ':5351' && iptables-legacy -t nat -L MINIUPNPD > /dev/null 2>&1"]
interval: 2s
timeout: 2s
retries: 5