From 2c1a24097355ad922cba73ae66d6ecf817813e95 Mon Sep 17 00:00:00 2001 From: maltokyo Date: Thu, 7 Nov 2019 11:16:58 +0100 Subject: [PATCH] ElectrumX Integration (#217) --- README.md | 1 + .../docker-fragments/opt-add-electumx.yml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docker-compose-generator/docker-fragments/opt-add-electumx.yml diff --git a/README.md b/README.md index 1f8ae73..791ac69 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ Available `BTCPAYGEN_ADDITIONAL_FRAGMENTS` currently are: * [opt-txindex](docker-compose-generator/docker-fragments/opt-txindex.yml), to enable txindex=1 in bitcoin.conf if you require txindexing for Bisq, DOJO, Esplora, etc. * [opt-unsafe-expose](docker-compose-generator/docker-fragments/opt-unsafe-expose.yml), to unsafely expose bitcoind P2P port 8333 if you require P2P for Bisq, DOJO, Esplora, etc. WARNING: ONLY USE ON TRUSTED LAN OR WITH FIREWALL RULES WHITELISTING SPECIFIC HOSTS * [opt-add-tor-relay](docker-compose-generator/docker-fragments/opt-add-tor-relay.yml), for a non-exit tor relay. Make sure to have ports 9001 and 9030 accessible externally. [Please read the legal implications of running a tor relay](https://www.eff.org/torchallenge/faq.html) and [what resources are used to operate the relay](https://trac.torproject.org/projects/tor/wiki/TorRelayGuide#RelayRequirements). +* [opt-add-electrumx](docker-compose-generator/docker-fragments/opt-add-electrumx.yml), to integrate a full ElectrumX server (from official source) with BTCPay, using the BTCPay server's full bitcoin node for complete privacy when using your own Electrum wallet. You can also open port 50002 up to the internet on your router etc, to be part of the ElectrumX network, helping other Electrum wallet users to get connected. The bitcoin option -txindex is mandatory for ElectrumX, and this fragement will enable it on your BTCPay server automatically - NO need to use the fragment opt-txindex.yml. You can also create your own [custom fragments](#how-can-i-customize-the-generated-docker-compose-file). diff --git a/docker-compose-generator/docker-fragments/opt-add-electumx.yml b/docker-compose-generator/docker-fragments/opt-add-electumx.yml new file mode 100644 index 0000000..816ac55 --- /dev/null +++ b/docker-compose-generator/docker-fragments/opt-add-electumx.yml @@ -0,0 +1,20 @@ +version: "3" + +services: + bitcoind: + environment: + BITCOIN_EXTRA_ARGS: | + txindex=1 + rpcauth=electrumx:7d8ee47c089e6072635f82b34796e878$$13649d99453ccdf78e85007286422599c00e6953289f41bf8e92961076ba14db + electrumx: + image: lukechilds/electrumx + restart: unless-stopped + ports: + - "50002:50002" + volumes: + - "electrumx_datadir:/data" + environment: + - DAEMON_URL=electrumx:1VmSUVGBuLNWvZl0LExRDW0tvl6196-47RfXIzS384g=@bitcoind:43782 + - COIN=BitcoinSegwit +volumes: + electrumx_datadir: