create Mutual Witness Protocol specs and implementation. #1

Merged
mdt merged 26 commits from mwp into main 2026-02-11 17:38:08 +00:00
69 changed files with 11162 additions and 242 deletions
Showing only changes of commit a44af22739 - Show all commits

View File

@@ -77,6 +77,6 @@ ENV FILE_SIZE_MB=10
EXPOSE 8080 EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ 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"] CMD ["docker-peer"]

View File

@@ -48,7 +48,7 @@ services:
ports: ports:
- "8080:8080" # Expose for debugging - "8080:8080" # Expose for debugging
healthcheck: healthcheck:
test: ["CMD", "pgrep", "docker-peer"] test: ["CMD-SHELL", "pgrep docker-peer > /dev/null && ss -tlnp | grep -q ':8080'"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 3 retries: 3

View File

@@ -37,7 +37,7 @@ services:
external: external:
ipv4_address: 10.200.0.1 ipv4_address: 10.200.0.1
healthcheck: 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 interval: 2s
timeout: 2s timeout: 2s
retries: 5 retries: 5

View File

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