fix: use python3 socket health check for electrumx (no curl in image)

The electrumx container image doesn't include curl. Replace the HTTP
health check with a Python socket connection test to the RPC port.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-30 22:19:46 +01:00
parent 4468b6d611
commit 55fc67c5f9

View File

@@ -165,7 +165,7 @@ load_spec_electrumx() {
SPEC_PORTS="50001:50001"
SPEC_VOLUMES="/var/lib/archipelago/electrumx:/data"
SPEC_MEMORY="$(mem_limit electrumx)"
SPEC_HEALTH_CMD="curl -sf http://localhost:8000/ || exit 1"
SPEC_HEALTH_CMD="python3 -c 'import socket; s=socket.create_connection((\"localhost\",8000),2); s.close()' || exit 1"
SPEC_ENV="DAEMON_URL=http://$BITCOIN_RPC_USER:$BITCOIN_RPC_PASS@bitcoin-knots:8332/ COIN=Bitcoin DB_DIRECTORY=/data SERVICES=tcp://:50001,rpc://0.0.0.0:8000"
SPEC_TIER="1"
SPEC_DATA_DIR="/var/lib/archipelago/electrumx"