services: electrumx: build: # Repository root, not ./docker: the Dockerfile copies ./docker/run.sh # and ./docker/healthy_check.sh, and those paths are resolved against the # build context. context: . dockerfile: ./docker/Dockerfile image: registry.bitdeals.org/electrumx environment: - COIN=Bitcoin # ElectrumX spelling, not bitcoind's: the daemon calls this chain # "regtest" too, but "main"/"test" there are "mainnet"/"testnet" here. - NET=regtest # The daemon must run with txindex=1 and txospenderindex=1. - DAEMON_URL=http://CHANGE_ME:CHANGE_ME@bitcoind:18443 - CACHE_MB=400 ports: # No authentication of any kind — loopback only, or nothing at all when # the clients are containers on the same network. - 127.0.0.1:50001:50001 volumes: - electrumxdata:/data volumes: electrumxdata: