improve docker healthchecks to verify port binding and iptables chains
not just process existence
This commit is contained in:
@@ -77,6 +77,6 @@ ENV FILE_SIZE_MB=10
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD pgrep docker-peer || exit 1
|
||||
CMD pgrep docker-peer > /dev/null && ss -tlnp | grep -q ":${PEER_PORT}" || exit 1
|
||||
|
||||
CMD ["docker-peer"]
|
||||
|
||||
Reference in New Issue
Block a user