improve docker healthchecks to verify port binding and iptables chains
not just process existence
This commit is contained in:
@@ -48,7 +48,7 @@ services:
|
||||
ports:
|
||||
- "8080:8080" # Expose for debugging
|
||||
healthcheck:
|
||||
test: ["CMD", "pgrep", "docker-peer"]
|
||||
test: ["CMD-SHELL", "pgrep docker-peer > /dev/null && ss -tlnp | grep -q ':8080'"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user