Support RocksDB (#35)

This commit is contained in:
Marvin D 2019-06-17 10:22:32 +02:00 committed by Luke Childs
parent a89d072599
commit eea20f012b
2 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,8 @@ RUN VERSION=$(cat /tmp/VERSION) && \
chmod a+x /usr/local/bin/* && \
apk add --no-cache git build-base openssl && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community leveldb-dev && \
pip install aiohttp pylru plyvel websockets && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing rocksdb-dev && \
pip install aiohttp pylru plyvel websockets python-rocksdb && \
git clone -b $VERSION https://github.com/kyuupichan/electrumx.git && \
cd electrumx && \
python setup.py install && \

View File

@ -25,6 +25,10 @@ If there's an SSL certificate/key (`electrumx.crt`/`electrumx.key`) in the `/dat
You can view all ElectrumX environment variables here: https://github.com/kyuupichan/electrumx/blob/master/docs/environment.rst
### RocksDB
You can use RocksDB as the database engine instead of the default LevelDB by adding `-e DB_ENGINE=rocksdb` to your docker run. RocksDB should perform slightly better and use a little less disk space, but has to rebuild the databse.
### TCP Port
By default only the SSL port is exposed. You can expose the unencrypted TCP port with `-p 50001:50001`, although this is strongly discouraged.