Files
plm-electrumx/docker-compose.yml
T
davideandClaude Sonnet 5.5 6624403688 Add Dockerfile and docker-compose.yml to run next to the Palladium node
ElectrumX is built from this source tree with RocksDB and joins the external
'palladium' network of the node in palladiumcore/docker, reaching it as
palladiumd:2332. RPC credentials come from .env (ignored by git, see
.env.example). The Bitcoin-specific contrib/Dockerfile is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 15:10:44 +02:00

28 lines
922 B
YAML

# ElectrumX for Palladium, next to the node of palladiumcore/docker.
# Start the node first: it creates the "palladium" network. Setup and usage: README.md
services:
electrumx:
build: .
image: plm-electrumx
restart: unless-stopped
environment:
# the node is reached by name on the shared network; user and password are those of its palladium.conf
DAEMON_URL: http://${PLM_RPC_USER}:${PLM_RPC_PASSWORD}@palladiumd:2332/
CACHE_MB: ${CACHE_MB:-1200}
# address announced to other servers and clients, if this server is public (tcp://host:50001)
REPORT_SERVICES: ${REPORT_SERVICES:-}
ports:
- "${ELECTRUMX_TCP_PORT:-50001}:50001"
volumes:
- electrumx-db:/var/lib/electrumx
stop_grace_period: 2m # lets the server flush the db on shutdown
networks: [palladium]
volumes:
electrumx-db:
networks:
palladium:
name: palladium
external: true