Skip to content

Commit

Permalink
Merge pull request #1223 from alvasw/docker_compose_electrumx
Browse files Browse the repository at this point in the history
docker: Add ElectumX Support
  • Loading branch information
alvasw authored Sep 23, 2023
2 parents 3de2dfc + 9b67196 commit 670e519
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 31 deletions.
21 changes: 20 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,29 @@ services:
- -debug=1
- -rpcbind
- -rpcallowip=127.0.0.1
- -rpcallowip=172.0.0.1/8
- -rpcuser=bisq
- -rpcpassword=bisq
- -zmqpubhashblock=tcp://127.0.0.1:7777
- -zmqpubrawtx=tcp://127.0.0.1:7777
- -fallbackfee=0.00000001
- -whitelist=127.0.0.1
- -txindex=1
- -txindex=1

electrumx:
image: bisq/electrumx
build: ./electrumx
depends_on:
- bitcoin-core
ports:
- "127.0.0.1:50001:50001" # electrumx port
volumes:
- ./data_dirs/electrumx:/root/electrumx/db_directory
environment:
- ALLOW_ROOT=yes
- SERVICES=tcp://:50001,rpc://
- COIN=Bitcoin
- NET=regtest
- DAEMON_URL=http://bisq:bisq@bitcoin-core:18443
- DB_DIRECTORY=/root/electrumx/db_directory
entrypoint: ./electrumx_server
6 changes: 1 addition & 5 deletions docker/electrumx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
FROM python:3

# Install ElectrumX
WORKDIR /root

RUN git clone https://github.com/spesmilo/electrumx.git && \
cd electrumx && \
pip3 install . && \
mkdir db_directory

# Start ElectrumX
WORKDIR /root/electrumx
CMD ALLOW_ROOT=yes SERVICES=tcp://:50001,rpc:// COIN=Bitcoin NET=regtest \
DAEMON_URL=http://bisq:bisq@host.docker.internal:18443 \
DB_DIRECTORY=/root/electrumx/db_directory ./electrumx_server
25 changes: 0 additions & 25 deletions docker/electrumxAndBitcoind/Dockerfile

This file was deleted.

0 comments on commit 670e519

Please sign in to comment.