Sign inSign up

dconnolly/electrumx

By dconnolly

•Updated over 3 years ago

ElectrumX for Bitcoin SV

Image
0

6.8K

dconnolly/electrumx repository overview

⁠docker-electrumx

A docker container for Electrum X⁠.

The container is available at docker hub⁠. The repository for this docker file is here⁠.

The container is preconfigured for Bitcoin SV⁠. Other blockchains may work but are not supported.

Suggestions are welcomed, please use the Github issues⁠.

⁠Bitcoin Node Requirements

Electrum X relies on a Bitcoin node to query the state of the blockchain. The node must be configured:

  • to index all transactions (option txindex=1 in the configuration file)
  • to expose the REST interface (option 'rest=1' in the configuration file)

Electrum X will need access to the RPC interface.

⁠Configuration

The majority of the configuration is controlled by environment variables. The following environment variables are mandatory:

  • DAEMON_URL - connection string for the BSV node - following the format http://username:password@host:port/

Other environemnt variables have defaults:

VariableDefaultPurpose
COINBitcoinSVThe Bitcoin variant to use
SSL_CERTFILE/src/server.crtthe certificate for SSL connections
SSL_KEYFILE/srv/server.keythe private key for the certificate for SSL connections
DONATION_ADDRESSnoneBitcoin address for donations
BANNER_FILE/srv/motdThe banner to send to clients

⁠Storage

Electrum X needs persistent storage. In the example docker-compose.yml a storage volume is declared and configured.

⁠Running in Docker

To run the Electrum X server using the default settings, use a command such as: docker-compose -f ./docker-compose.yml up

Note that using 'localhost' as your hostname will not work as this will resolve to the container itself.

Tag summary

Content type

Image

Digest

sha256:1411a41cf…

Size

350.3 MB

Last updated

over 3 years ago

docker pull dconnolly/electrumx