Files
electrumx-docker/README.md
Bill da297b4f6a
Some checks failed
Build / build (push) Failing after 1m15s
Initial Commit
2024-09-15 18:41:07 -04:00

31 lines
790 B
Markdown

# electrumx-docker
Docker image for running an Electrum server.
## Usage
```
docker run \
-v /home/username/electrumx:/data \
-e DAEMON_URL=http://user:pass@host:port \
-e COIN=BitcoinSegwit \
-p 50002:50002 \
lukechilds/electrumx
```
If there's an SSL certificate/key (`electrumx.crt`/`electrumx.key`) in the `/data` volume it'll be used. If not, one will be generated for you.
View all ElectrumX environment variables here: https://github.com/spesmilo/electrumx/blob/master/docs/environment.rst
### TCP Port
By default only the SSL port is exposed. Expose the unencrypted TCP port with `-p 50001:50001`.
### WebSocket Port
Expose the WebSocket port with `-p 50004:50004`.
### RPC Port
To access RPC from your host machine, expose port 8000: `-p 127.0.0.1:8000:8000`.