Compare commits
7 Commits
7f07f29d85
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 600593f4b1 | |||
| 68afa54b36 | |||
| e9fdd926ac | |||
| 38b9bcb245 | |||
| ee2e72c517 | |||
| 87fe23f01a | |||
| 2804141d76 |
@@ -7,9 +7,9 @@ WORKDIR /
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get -y install git python3.10 python3-pip librocksdb-dev libsnappy-dev libbz2-dev libz-dev liblz4-dev
|
||||
RUN apt-get -y install git python3.10 python3-pip libsnappy-dev libbz2-dev libz-dev liblz4-dev
|
||||
|
||||
RUN pip3 install multidict aiohttp pylru rocksdb
|
||||
RUN pip3 install multidict aiohttp pylru ujson
|
||||
|
||||
RUN git clone -b $VERSION https://github.com/spesmilo/electrumx.git
|
||||
|
||||
@@ -20,7 +20,7 @@ ENV COIN=BitcoinSV
|
||||
ENV DB_DIRECTORY=/db
|
||||
ENV DAEMON_URL="http://username:password@hostname:port/"
|
||||
ENV ALLOW_ROOT=true
|
||||
ENV DB_ENGINE=rocksdb
|
||||
ENV DB_ENGINE=leveldb
|
||||
ENV MAX_SEND=10000000
|
||||
ENV BANDWIDTH_UNIT_COST=50000
|
||||
ENV CACHE_MB=2000
|
||||
@@ -29,4 +29,6 @@ VOLUME /db
|
||||
|
||||
RUN mkdir -p "$DB_DIRECTORY"
|
||||
|
||||
EXPOSE 50001
|
||||
|
||||
CMD ["/usr/bin/python3", "/usr/local/bin/electrumx_server"]
|
||||
15
README.md
15
README.md
@@ -6,12 +6,15 @@ 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
|
||||
electrum:
|
||||
image: git.prettyhefty.com/bill/electrumx-docker:1.16.0
|
||||
restart: unless-stopped
|
||||
container_name: electrum
|
||||
environment:
|
||||
- COIN=Bitcoin
|
||||
- DAEMON_URL=username:password@bitcoin-core
|
||||
volumes:
|
||||
- ${DATA_DIR}/electrum:/db
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user